From 16a15d514eb000c3aeb2806b6079d4a83bdc7a32 Mon Sep 17 00:00:00 2001 From: RayPals Date: Mon, 1 Jun 2026 00:52:15 +0200 Subject: [PATCH] Add tests/17_stdlib_text.claro from Claro v1.17.26 zip --- tests/17_stdlib_text.claro | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/17_stdlib_text.claro 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