Skip to content

Commit

Permalink
other byte slice compat test
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Sanft <[email protected]>
  • Loading branch information
msanft committed Oct 16, 2023
1 parent 2a912dc commit 3e9f121
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/internal/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ func TestUnmarshalHexBytes(t *testing.T) {
in: "[0xab, 0xcd, 0xef]",
expected: []byte{0xab, 0xcd, 0xef},
},
"byte slice compat 2": {
in: "[00, 12, 34]",
expected: []byte{0x00, 0x0c, 0x22},
},
}

for name, tc := range testCases {
Expand Down

0 comments on commit 3e9f121

Please sign in to comment.