add dump hex test
This commit is contained in:
parent
7e5e398dc5
commit
36f143bcc2
|
@ -85,6 +85,15 @@ suite "Testing input and output procedures":
|
||||||
# TODO: negative hex
|
# TODO: negative hex
|
||||||
|
|
||||||
test "Hex dump":
|
test "Hex dump":
|
||||||
|
|
||||||
|
block:
|
||||||
|
let a = 0x1234567890ABCDEF.stint(128)
|
||||||
|
check: a.dumpHex(bigEndian).toUpperAscii == "00000000000000001234567890ABCDEF"
|
||||||
|
|
||||||
|
block:
|
||||||
|
let a = 0x1234567890ABCDEF.stuint(128)
|
||||||
|
check: a.dumpHex(bigEndian).toUpperAscii == "00000000000000001234567890ABCDEF"
|
||||||
|
|
||||||
block:
|
block:
|
||||||
let a = 0x1234'i32.stint(32)
|
let a = 0x1234'i32.stint(32)
|
||||||
check: a.dumpHex(bigEndian).toUpperAscii == "00001234"
|
check: a.dumpHex(bigEndian).toUpperAscii == "00001234"
|
||||||
|
|
Loading…
Reference in New Issue