From 9472474ffd5d9922c63674261e7cbf1a1555fc5e Mon Sep 17 00:00:00 2001 From: Tao Wen Date: Tue, 27 Feb 2018 12:04:11 +0800 Subject: [PATCH] test []byte behavior --- value_tests/slice_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/value_tests/slice_test.go b/value_tests/slice_test.go index f14823f..3e4c348 100644 --- a/value_tests/slice_test.go +++ b/value_tests/slice_test.go @@ -6,6 +6,7 @@ func init() { []interface{}{"hello"}, nilSlice, &nilSlice, + selectedMarshalCase{[]byte{1,2,3}}, ) unmarshalCases = append(unmarshalCases, unmarshalCase{ ptr: (*[]string)(nil), @@ -13,5 +14,12 @@ func init() { }, unmarshalCase{ ptr: (*[]string)(nil), input: "[]", + }, unmarshalCase{ + ptr: (*[]byte)(nil), + input: "[1,2,3]", + }, unmarshalCase{ + ptr: (*[]byte)(nil), + input: `"aGVsbG8="`, + selected: true, }) }