aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-07 16:19:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-03-07 16:19:12 -0500
commit7eb1fbf5d2d632bbd98fc3fa7cff777197a63d34 (patch)
tree7238baa1f07ebc077473a49300992db846b2b606 /test
parentd590b9d386977d342fc3580e473219d5b9e38503 (diff)
Add proper language support for case operations on text
Diffstat (limited to 'test')
-rw-r--r--test/text.tm20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/text.tm b/test/text.tm
index 7d6ce831..a1b36d97 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -11,6 +11,26 @@ func main():
>> str[1]
= "H"
+ >> "I":lower()
+ = "i"
+ >> "I":lower(language="tr_TR")
+ = "ı"
+
+ >> "i":upper()
+ = "I"
+ >> "i":upper(language="tr_TR")
+ = "İ"
+
+ >> "ian":title()
+ = "Ian"
+ >> "ian":title(language="tr_TR")
+ = "İan"
+
+ >> "I":caseless_equals("ı")
+ = no
+ >> "I":caseless_equals("ı", language="tr_TR")
+ = yes
+
>> str[9]
= "é"