]> gitweb.factorcode.org Git - factor.git/commitdiff
math.combinatorics: tests for <k-permutations>
authorolus2000 <alsabak@gmail.com>
Fri, 29 Dec 2023 08:38:57 +0000 (09:38 +0100)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 29 Dec 2023 14:20:11 +0000 (07:20 -0700)
basis/math/combinatorics/combinatorics-tests.factor

index 3111d51bbd138dcbe7377eca0a7c7004a0ac1507..a070d57e3abf04e021764897aee792dd2d4db4f8 100644 (file)
@@ -112,3 +112,15 @@ math.combinatorics.private tools.test sequences sets ;
 
 { { "as" "ad" "af" "sa" "sd" "sf" "da" "ds" "df" "fa" "fs" "fd" } }
 [ "asdf" 2 <k-permutations> >array ] unit-test
+
+{ { "" } } [
+    "asdf" 0 <k-permutations> >array
+] unit-test
+
+{ { } } [
+    "" 10 <k-permutations>
+] unit-test
+
+{ { "" } } [
+    "" 0 <k-permutations> >array
+] unit-test