From 23c5766bd229b7208a37953615096901e05cda2b Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Thu, 18 Feb 2021 19:11:44 +0900 Subject: [PATCH] Add test case --- decode_test.go | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/decode_test.go b/decode_test.go index ec74b0a..0d30b9d 100644 --- a/decode_test.go +++ b/decode_test.go @@ -1063,19 +1063,18 @@ var unmarshalTests = []unmarshalTest{ out: []byteWithPtrMarshalJSON{1, 2, 3}, golden: true, }, - /* - { - in: `"AQID"`, // 108 - ptr: new([]byteWithPtrMarshalText), - out: []byteWithPtrMarshalText{1, 2, 3}, - }, - { - in: `["Z01","Z02","Z03"]`, // 109 - ptr: new([]byteWithPtrMarshalText), - out: []byteWithPtrMarshalText{1, 2, 3}, - golden: true, - }, - */ + { + in: `"AQID"`, // 108 + ptr: new([]byteWithPtrMarshalText), + out: []byteWithPtrMarshalText{1, 2, 3}, + }, + { + in: `["Z01","Z02","Z03"]`, // 109 + ptr: new([]byteWithPtrMarshalText), + out: []byteWithPtrMarshalText{1, 2, 3}, + golden: true, + }, + // ints work with the marshaler but not the base64 []byte case { in: `["Z01","Z02","Z03"]`, // 110