USING: command-line namespaces tools.test ;
-{ "factor" f { "a" "b" "c" } } [
+{ f { "a" "b" "c" } } [
{ "factor" "-run=test-voc" "a" "b" "c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
-{ "factor" f { "-a" "b" "c" } } [
+{ f { "-a" "b" "c" } } [
{ "factor" "-run=test-voc" "-a" "b" "c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
-{ "factor" f { "a" "-b" "c" } } [
+{ f { "a" "-b" "c" } } [
{ "factor" "-run=test-voc" "a" "-b" "c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
-{ "factor" f { "a" "b" "-c" } } [
+{ f { "a" "b" "-c" } } [
{ "factor" "-run=test-voc" "a" "b" "-c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
-{ "factor" "a" { "b" "c" } } [
+{ "a" { "b" "c" } } [
{ "factor" "a" "b" "c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
-{ "factor" "a" { "b" "c" } } [
+{ "a" { "b" "c" } } [
{ "factor" "-foo" "a" "b" "c" } parse-command-line
- executable get script get command-line get
+ script get command-line get
] unit-test
{ "a:b:c" } [ { "factor" "-roots=a:b:c" } parse-command-line