factor/extra/sequences/abbrev/abbrev-tests.factor

27 lines
511 B
Factor
Raw Normal View History

2009-07-19 19:31:26 -04:00
USING: assocs sequences.abbrev tools.test ;
IN: sequences.abbrev.tests
2009-07-20 14:18:13 -04:00
[ { "hello" "help" } ] [
2009-07-19 19:31:26 -04:00
"he" { "apple" "hello" "help" } abbrev at
] unit-test
[ f ] [
"he" { "apple" "hello" "help" } unique-abbrev at
] unit-test
[ { "apple" } ] [
"a" { "apple" "hello" "help" } abbrev at
] unit-test
[ { "apple" } ] [
"a" { "apple" "hello" "help" } unique-abbrev at
] unit-test
[ f ] [
"a" { "hello" "help" } abbrev at
] unit-test
[ f ] [
"a" { "hello" "help" } unique-abbrev at
] unit-test