Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif committed Dec 4, 2024
1 parent bc0fdbb commit d175e97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/Text.test.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,24 @@ run(
)
);

run(
suite(
"list-conversions",
[
test(
"toList-example",
Text.toList("Café"),
M.equals(T.list<Char>(T.charTestable, ?('C', ?('a', ?('f', ?('é', null)))))),
),
test(
"fromList-example",
Text.fromList(?('H', ?('e', ?('l', ?('l', ?('o', null)))))),
M.equals(T.text "Hello")
)
]
)
);

run(
suite(
"text-toLowercase",
Expand Down

0 comments on commit d175e97

Please sign in to comment.