aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-03 19:40:01 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-03 19:40:01 -0500
commit1f6aa4cac7af0e00c826d5348b06aed70cbcb3e3 (patch)
treea53f2264f98d329b01278161c7ff32b5c1506593 /test/text.tm
parentdc04286e3a75d8f94a69c204cb4fbb7b22e2d6a9 (diff)
Add methods for text:clusters(), text:codepoints(), text:bytes()
Diffstat (limited to 'test/text.tm')
-rw-r--r--test/text.tm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index 33582a1c..690bb57a 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -14,3 +14,11 @@
>> \UE9 == \U65\U301
= yes
+
+>> amelie := "Amélie"
+>> amelie:clusters()
+= ["A", "m", "é", "l", "i", "e"] : [Text]
+>> amelie:codepoints()
+= [65_i32, 109_i32, 101_i32, 769_i32, 108_i32, 105_i32, 101_i32] : [Int32]
+>> amelie:bytes()
+= [65_i8, 109_i8, 101_i8, -52_i8, -127_i8, 108_i8, 105_i8, 101_i8] : [Int8]