Fix byte-arrays tests

db4
Slava Pestov 2008-12-09 21:07:28 -06:00
parent e42de00371
commit 7ad6d34212
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
IN: byte-arrays.tests
USING: tools.test byte-arrays ;
USING: tools.test byte-arrays sequences kernel ;
[ B{ 1 2 3 0 0 0 } ] [ 6 B{ 1 2 3 } resize-byte-array ] unit-test
[ 6 B{ 1 2 3 } ] [
6 B{ 1 2 3 } resize-byte-array
[ length ] [ 3 head ] bi
] unit-test
[ B{ 1 2 } ] [ 2 B{ 1 2 3 4 5 6 7 8 9 } resize-byte-array ] unit-test