13 lines
		
	
	
		
			335 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			335 B
		
	
	
	
		
			Factor
		
	
	
IN: byte-arrays.tests
 | 
						|
USING: tools.test byte-arrays sequences kernel ;
 | 
						|
 | 
						|
[ 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
 | 
						|
 | 
						|
[ -10 B{ } resize-byte-array ] must-fail
 | 
						|
 | 
						|
[ B{ 123 } ] [ 123 1byte-array ] unit-test |