diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 23:41:26 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-04-02 23:41:26 -0400 |
| commit | bec67efb11fb78f2f9e807ba47d7e45574f23212 (patch) | |
| tree | 384b8467994956f3ed2bdeb2e77bf8b694e8480a | |
| parent | 6eb680f1b77fb35b0966de1aa4a1b187671a525a (diff) | |
Add test for array:sample()
| -rw-r--r-- | test/arrays.tm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/arrays.tm b/test/arrays.tm index 60bdc69a..17aeee53 100644 --- a/test/arrays.tm +++ b/test/arrays.tm @@ -92,3 +92,5 @@ if yes >> nums:sort(func(x:&%Int,y:&%Int) y[] <> x[]) >> nums = [30, 10, -20] + +>> ["A", "B", "C"]:sample(10, [1.0, 0.5, 0.0]) |
