33 lines
		
	
	
		
			977 B
		
	
	
	
		
			Factor
		
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			977 B
		
	
	
	
		
			Factor
		
	
	
USING: namespaces splitting tools.test ;
 | 
						|
IN: command-line
 | 
						|
 | 
						|
{ "factor" f { "a" "b" "c" } } [
 | 
						|
    { "factor" "-run=test-voc" "a" "b" "c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 | 
						|
 | 
						|
{ "factor" f { "-a" "b" "c" } } [
 | 
						|
    { "factor" "-run=test-voc" "-a" "b" "c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 | 
						|
 | 
						|
{ "factor" f { "a" "-b" "c" } } [
 | 
						|
    { "factor" "-run=test-voc" "a" "-b" "c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 | 
						|
 | 
						|
{ "factor" f { "a" "b" "-c" } } [
 | 
						|
    { "factor" "-run=test-voc" "a" "b" "-c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 | 
						|
 | 
						|
{ "factor" "a" { "b" "c" } } [
 | 
						|
    { "factor" "a" "b" "c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 | 
						|
 | 
						|
{ "factor" "a" { "b" "c" } } [
 | 
						|
    { "factor" "-foo" "a" "b" "c" } parse-command-line
 | 
						|
    executable get script get command-line get
 | 
						|
] unit-test
 |