aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/text.tm')
-rw-r--r--test/text.tm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index bf7b77cd..216e5aaf 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -275,6 +275,16 @@ func main():
>> "A=B=C=D":replace($/{..}={..}/, "1:(\1) 2:(\2)")
= "1:(A) 2:(B=C=D)"
+ >> "abcde":starts_with("ab")
+ = yes
+ >> "abcde":starts_with("bc")
+ = no
+
+ >> "abcde":ends_with("de")
+ = yes
+ >> "abcde":starts_with("cd")
+ = no
+
do:
!! Testing concatenation-stability:
>> ab := Text.from_codepoint_names(["LATIN SMALL LETTER E", "COMBINING VERTICAL LINE BELOW"])