Add tests/17_stdlib_text.claro from Claro v1.17.26 zip

This commit is contained in:
RayPals
2026-06-01 00:52:15 +02:00
parent 62c6eed502
commit 16a15d514e
+13
View File
@@ -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