Skip to content

Commit 6a0b5b7

Browse files
committed
fix(tests): fix TestMAC test case
- fixed test case for MAC without delimiters to be accepted
1 parent 2e45b3c commit 6a0b5b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

json/mac_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ func TestMAC(t *testing.T) {
5959
// Valid MAC.
6060
{`"00:11:22:33:44:55"`, mac("00:11:22:33:44:55"), false},
6161
{`"A1-B2-C3-D4-E5-F6"`, mac("A1-B2-C3-D4-E5-F6"), false},
62+
{`"A1B2C3D4E5F6"`, mac("A1B2C3D4E5F6"), false},
6263

6364
// Invalid MAC.
6465
{"01:23:45:67:89:GH", nil, true}, // GH is not a valid hex digit.
6566
{`"00-1B-2C-3D-4E"`, nil, true}, // Too few octets.
66-
{`"A1B2C3D4E5F6"`, nil, true}, // Missing separators.
6767
}
6868
for i, tt := range tests {
6969
tt := tt

0 commit comments

Comments
 (0)