Skip to content

Commit

Permalink
fix(asm): adds a test for three byte inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepeterson committed Jun 30, 2024
1 parent b307734 commit a422681
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions assembler/assembler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,20 @@ func TestAssemblerParseHex(t *testing.T) {
wantLow: 0xFF,
wantErr: false,
},
{
name: "three bytes with prefix and without leading zero",
token: "0xFFFFF",
wantHigh: 0x00,
wantLow: 0x00,
wantErr: true,
},
{
name: "three bytes",
token: "0xFFFFFF",
wantHigh: 0x00,
wantLow: 0x00,
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit a422681

Please sign in to comment.