| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | USING: arrays kernel sequences sequences.private growable | 
					
						
							| 
									
										
										
										
											2007-10-14 20:38:23 -04:00
										 |  |  | tools.test vectors layouts system math vectors.private ;
 | 
					
						
							| 
									
										
										
										
											2007-09-20 18:09:08 -04:00
										 |  |  | IN: temporary | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ -2 { "a" "b" "c" } nth ] unit-test-fails | 
					
						
							|  |  |  | [ 10 { "a" "b" "c" } nth ] unit-test-fails | 
					
						
							|  |  |  | [ "hi" -2 { "a" "b" "c" } set-nth ] unit-test-fails | 
					
						
							|  |  |  | [ "hi" 10 { "a" "b" "c" } set-nth ] unit-test-fails | 
					
						
							|  |  |  | [ f ] [ { "a" "b" "c" } dup clone eq? ] unit-test | 
					
						
							|  |  |  | [ "hi" ] [ "hi" 1 { "a" "b" "c" } clone [ set-nth ] keep second ] unit-test | 
					
						
							|  |  |  | [ V{ "a" "b" "c" } ] [ { "a" "b" "c" } >vector ] unit-test | 
					
						
							|  |  |  | [ f ] [ { "a" "b" "c" } dup >array eq? ] unit-test | 
					
						
							|  |  |  | [ t ] [ { "a" "b" "c" } dup { } like eq? ] unit-test | 
					
						
							|  |  |  | [ t ] [ { "a" "b" "c" } dup dup length array>vector underlying eq? ] unit-test | 
					
						
							|  |  |  | [ V{ "a" "b" "c" } ] [ { "a" "b" "c" } V{ } like ] unit-test | 
					
						
							|  |  |  | [ { "a" "b" "c" } ] [ { "a" } { "b" "c" } append ] unit-test | 
					
						
							|  |  |  | [ { "a" "b" "c" "d" "e" } ] | 
					
						
							|  |  |  | [ { "a" } { "b" "c" } { "d" "e" } 3append ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [ -1 f <array> ] unit-test-fails | 
					
						
							|  |  |  | [ cell-bits cell log2 - 2^ f <array> ] unit-test-fails |