io.binary: adding some tests for signed>.

db4
John Benediktsson 2015-05-31 08:44:39 -07:00
parent ddb636c4c0
commit e04dc6db29
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ IN: io.binary.tests
B{ 0x11 0x22 0x33 } le> B{ 0x11 0x22 0x33 } le>
] unit-test ] 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 ] [ [ 0x7a2c793b2ff08554 ] [
B{ 0x54 0x85 0xf0 0x2f 0x3b 0x79 0x2c 0x7a } le> B{ 0x54 0x85 0xf0 0x2f 0x3b 0x79 0x2c 0x7a } le>
] unit-test ] unit-test