fixed dec16 test

This commit is contained in:
radumacocian
2025-04-29 18:19:38 +02:00
parent 8a15b8645f
commit 94bf8511c7

View File

@@ -29,7 +29,7 @@ func TestDEC16(t *testing.T) {
r2 = byte(0x00) r2 = byte(0x00)
DEC16(&r1, &r2) DEC16(&r1, &r2)
expected = uint16(0x1000) expected = uint16(0x10ff)
actual = (uint16(r1) << 8) | uint16(r2) actual = (uint16(r1) << 8) | uint16(r2)
if actual != expected { if actual != expected {
t.Errorf("actual %x != expected %x", actual, expected) t.Errorf("actual %x != expected %x", actual, expected)