summaryrefslogtreecommitdiffstats
path: root/tests/015/comb.tl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/015/comb.tl')
-rw-r--r--tests/015/comb.tl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/015/comb.tl b/tests/015/comb.tl
index b0cdf277..9973e94d 100644
--- a/tests/015/comb.tl
+++ b/tests/015/comb.tl
@@ -431,3 +431,13 @@
(rperm '(1) -1) :error
(rperm "" -1) :error
(rperm "a" -1) :error)
+
+(mtest
+ (comb "a".."c" 2) (("a" "b") ("a" "c") ("b" "c"))
+ (rcomb "a".."c" 2) (("a" "a") ("a" "b") ("a" "c")
+ ("b" "b") ("b" "c") ("c" "c"))
+ (perm "a".."c" 2) (("a" "b") ("a" "c") ("b" "a")
+ ("b" "c") ("c" "a") ("c" "b"))
+ (rperm "a".."c" 2) (("a" "a") ("a" "b") ("a" "c")
+ ("b" "a") ("b" "b") ("b" "c")
+ ("c" "a") ("c" "b") ("c" "c")))