diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test.mew | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test.mew b/tests/test.mew index 50cb6bd..e3a527a 100644 --- a/tests/test.mew +++ b/tests/test.mew @@ -44,7 +44,11 @@ (test-group "sample" (test #t ((one-of 1 2 3) (sample '(1 2 3)))) (test #t ((one-of 1 2 3) (sample #(1 2 3)))) - (test #t ((one-of '(1 . 2) '(3 . 4)) (sample (tbl 1 2 3 4))))) + (test #t ((one-of '(1 . 2) '(3 . 4)) (sample (tbl 1 2 3 4)))) + (test #t (string? (sample "foobar" 3))) + (test 3 (len (sample "foobar" 3))) + (test "ooo" (sample "ooooo" 3)) + (test #(1 2 3) (sort (sample #(1 2 3) 3) <))) (test-group "range" (test '(1 2 3) (into '() (range 1 4))) |