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 de87638
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/Text.test.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,23 @@ run(
)
);

run(
suite(
"list-conversions",
[
test(
"toList-example",
Text.toList("Café"),
M.equals(T.list<Char>(?('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 de87638

Please sign in to comment.