From bec67efb11fb78f2f9e807ba47d7e45574f23212 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 2 Apr 2024 23:41:26 -0400 Subject: Add test for array:sample() --- test/arrays.tm | 2 ++ 1 file changed, 2 insertions(+) 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]) -- cgit v1.2.3