diff --git a/tests/17_stdlib_text.claro b/tests/17_stdlib_text.claro new file mode 100644 index 0000000..0a2f0b2 --- /dev/null +++ b/tests/17_stdlib_text.claro @@ -0,0 +1,13 @@ +IMPORT "lib/text.claro" AS text +CALL text.upper WITH "hi" +SAY RESULT +CALL text.contains WITH "hello", "ell" +SAY RESULT +CALL text.endswith WITH "hello", "lo" +SAY RESULT +CALL text.split2 WITH "a=b", "=" +SET parts TO RESULT +GET parts AT 1 AS a +GET parts AT 2 AS b +SAY a +SAY b