Skip to content

Commit

Permalink
repro for issue #595
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Nov 14, 2023
1 parent 8028da2 commit 46232dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Array.test.mo
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ let suite = Suite.suite(
Array.chain<Int, Int>([], func x = [x, -x]),
M.equals(T.array<Int>(T.intTestable, []))
),
Suite.test(
"chain mix",
Array.chain<Nat, Nat>([0, 1, 2, 0, 1, 2],
func n = Array.tabulate<Nat>(n, func i = i)),
M.equals(T.array<Nat>(T.natTestable, [0,1,0,1]))
),
Suite.test(
"foldLeft",
Array.foldLeft<Text, Text>(["a", "b", "c"], "", Text.concat),
Expand Down

0 comments on commit 46232dd

Please sign in to comment.