From de876388bb199657501678b3d7f47bb61aceab64 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Wed, 4 Dec 2024 16:48:33 +0100 Subject: [PATCH] tests --- test/Text.test.mo | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/Text.test.mo b/test/Text.test.mo index 0ad5957e..13b10192 100644 --- a/test/Text.test.mo +++ b/test/Text.test.mo @@ -1053,6 +1053,23 @@ run( ) ); +run( + suite( + "list-conversions", + [ + test( + "toList-example", + Text.toList("Café"), + M.equals(T.list(?('C', ?('a', ?('f', ?('é', null)))))), + test( + "fromList-example", + Text.fromList(?('H', ?('e', ?('l', ?('l', ?('o', null)))))), + M.equals(T.text "Hello") + ) + ] + ) +); + run( suite( "text-toLowercase",