| 
									
										
										
										
											2014-06-10 19:45:41 -04:00
										 |  |  | USING: kernel sequences tools.test ;
 | 
					
						
							| 
									
										
										
										
											2014-06-09 14:17:07 -04:00
										 |  |  | IN: sorting.quick | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-06-10 19:45:41 -04:00
										 |  |  | { { } } [ { } dup natural-sort! ] unit-test | 
					
						
							|  |  |  | { { 1 } } [ { 1 } dup natural-sort! ] unit-test | 
					
						
							|  |  |  | { { 1 2 3 4 5 } } [ { 1 4 2 5 3 } dup natural-sort! ] unit-test | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     { "dino" "fred" "wilma" "betty" "barney" "pebbles" "bamm-bamm" } | 
					
						
							|  |  |  | } [ | 
					
						
							|  |  |  |     { "fred" "wilma" "pebbles" "dino" "barney" "betty" "bamm-bamm" } | 
					
						
							|  |  |  |     dup [ length ] sort-with! | 
					
						
							|  |  |  | ] unit-test |