9 lines
		
	
	
		
			517 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			517 B
		
	
	
	
		
			Factor
		
	
	
USING: kernel sequences strings.lib tools.test ;
 | 
						|
IN: temporary
 | 
						|
 | 
						|
[ "abcdefghijklmnopqrstuvwxyz" ] [ lower-alpha-chars "" like ] unit-test
 | 
						|
[ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ] [ upper-alpha-chars "" like ] unit-test
 | 
						|
[ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" ] [ alpha-chars "" like ] unit-test
 | 
						|
[ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" ] [ alphanumeric-chars "" like ] unit-test
 | 
						|
[ t ] [ 100 [ drop random-alphanumeric-char ] map alphanumeric-chars [ member? ] curry all? ] unit-test
 |