]> gitweb.factorcode.org Git - factor.git/blob - core/byte-arrays/byte-arrays-tests.factor
07b82f6111268d41ea7bd0e137ad01069d2d7b07
[factor.git] / core / byte-arrays / byte-arrays-tests.factor
1 IN: byte-arrays.tests\r
2 USING: tools.test byte-arrays ;\r
3 \r
4 [ B{ 1 2 3 0 0 0 } ] [ 6 B{ 1 2 3 } resize-byte-array ] unit-test\r
5 \r
6 [ B{ 1 2 } ] [ 2 B{ 1 2 3 4 5 6 7 8 9 } resize-byte-array ] unit-test\r
7 \r
8 [ -10 B{ } resize-byte-array ] must-fail\r