io.binary: adding some tests for signed>.
parent
ddb636c4c0
commit
e04dc6db29
|
|
@ -8,6 +8,12 @@ IN: io.binary.tests
|
|||
B{ 0x11 0x22 0x33 } le>
|
||||
] unit-test
|
||||
|
||||
{ 0x04030201 } [ B{ 1 2 3 4 } signed-le> ] unit-test
|
||||
{ 0x01020304 } [ B{ 1 2 3 4 } signed-be> ] unit-test
|
||||
|
||||
{ -12 } [ B{ 0xf4 0xff 0xff 0xff } signed-le> ] unit-test
|
||||
{ -12 } [ B{ 0xff 0xff 0xff 0xf4 } signed-be> ] unit-test
|
||||
|
||||
[ 0x7a2c793b2ff08554 ] [
|
||||
B{ 0x54 0x85 0xf0 0x2f 0x3b 0x79 0x2c 0x7a } le>
|
||||
] unit-test
|
||||
|
|
|
|||
Loading…
Reference in New Issue