]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.completion: add test that empty completions preserve order.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 17 Sep 2011 16:00:43 +0000 (09:00 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 17 Sep 2011 16:00:43 +0000 (09:00 -0700)
basis/tools/completion/completion-tests.factor

index 316bc513cced6457e5fe1e6bf01c56d80375b37b..0c1909c445764af618bad8175e90b04ca26b2ef1 100644 (file)
@@ -12,3 +12,7 @@ IN: tools.completion
 [ { "nth" "?nth" "set-nth" } ] [
     "nth" { "set-nth" "nth" "?nth" } dup zip completions keys
 ] unit-test
+
+[ { "a" "b" "c" "d" "e" "f" "g" } ] [
+    "" { "a" "b" "c" "d" "e" "f" "g" } dup zip completions keys
+] unit-test