|
@@ -320,7 +320,6 @@ func TestCborSkipTags(t *testing.T) {
|
|
|
|
|
|
|
|
var gold []byte
|
|
var gold []byte
|
|
|
NewEncoderBytes(&gold, &h).MustEncode(v)
|
|
NewEncoderBytes(&gold, &h).MustEncode(v)
|
|
|
-
|
|
|
|
|
// xdebug2f("encoded: gold: %v", gold)
|
|
// xdebug2f("encoded: gold: %v", gold)
|
|
|
|
|
|
|
|
// w.b is the encoded bytes
|
|
// w.b is the encoded bytes
|
|
@@ -333,7 +332,6 @@ func TestCborSkipTags(t *testing.T) {
|
|
|
NewDecoderBytes(w.b, &h).MustDecode(&v2)
|
|
NewDecoderBytes(w.b, &h).MustDecode(&v2)
|
|
|
testDeepEqualErr(v, v2, t, "cbor-skip-tags--no-tags-")
|
|
testDeepEqualErr(v, v2, t, "cbor-skip-tags--no-tags-")
|
|
|
|
|
|
|
|
- // Now, decode that stream into it.
|
|
|
|
|
var v3 Tcbortags
|
|
var v3 Tcbortags
|
|
|
doAddTag = true
|
|
doAddTag = true
|
|
|
fnEncode()
|
|
fnEncode()
|
|
@@ -341,8 +339,6 @@ func TestCborSkipTags(t *testing.T) {
|
|
|
NewDecoderBytes(w.b, &h).MustDecode(&v3)
|
|
NewDecoderBytes(w.b, &h).MustDecode(&v3)
|
|
|
testDeepEqualErr(v, v2, t, "cbor-skip-tags--has-tags")
|
|
testDeepEqualErr(v, v2, t, "cbor-skip-tags--has-tags")
|
|
|
|
|
|
|
|
- // Then get bytes with tags added, decode that stream, and check against golden v
|
|
|
|
|
-
|
|
|
|
|
// Github 300 - tests naked path
|
|
// Github 300 - tests naked path
|
|
|
{
|
|
{
|
|
|
expected := []interface{}{"x", uint64(0x0)}
|
|
expected := []interface{}{"x", uint64(0x0)}
|