cmn: fix HexBytes.MarshalJSON

This commit is contained in:
Ethan Buchman
2018-01-02 11:05:53 -05:00
parent 1460540acd
commit 2bb538b150
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ func TestJSONMarshal(t *testing.T) {
expected string
}{
{[]byte(``), `{"B1":"","B2":""}`},
{[]byte(``), `{"B1":"","B2":""}`},
{[]byte(``), `{"B1":"","B2":""}`},
{[]byte(`a`), `{"B1":"YQ==","B2":"61"}`},
{[]byte(`abc`), `{"B1":"YWJj","B2":"616263"}`},
}
for i, tc := range cases {