aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-05 15:18:32 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-05 15:18:32 -0500
commitb8d7eabc023bf9db0150049d8e909086f6ad91bc (patch)
tree5b678c7949638b3f07095affc04611f0422ef8c7 /test/text.tm
parent2fa26e6af3ec1599396d9260ef44b0d035b1f686 (diff)
Deprecate bit-width integer/num literals in favor of using type
constructors
Diffstat (limited to 'test/text.tm')
-rw-r--r--test/text.tm14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/text.tm b/test/text.tm
index 73b9f952..6ecd211b 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -29,21 +29,21 @@ func main():
>> amelie:split()
= ["A", "m", "é", "l", "i", "e"] : [Text]
>> amelie:utf32_codepoints()
- = [65[32], 109[32], 233[32], 108[32], 105[32], 101[32]] : [Int32]
+ = [Int32(65), Int32(109), Int32(233), Int32(108), Int32(105), Int32(101)]
>> amelie:utf8_bytes()
- = [65[B], 109[B], 195[B], 169[B], 108[B], 105[B], 101[B]] : [Byte]
- >> Text.from_bytes([65[B], 109[B], 195[B], 169[B], 108[B], 105[B], 101[B]])!
+ = [Byte(0x41), Byte(0x6D), Byte(0xC3), Byte(0xA9), Byte(0x6C), Byte(0x69), Byte(0x65)]
+ >> Text.from_bytes([:Byte 0x41, 0x6D, 0xC3, 0xA9, 0x6C, 0x69, 0x65])!
= "Amélie"
- >> Text.from_bytes([255[B]])
+ >> Text.from_bytes([Byte(0xFF)])
= !Text
>> amelie2 := "Am$(\U65\U301)lie"
>> amelie2:split()
= ["A", "m", "é", "l", "i", "e"] : [Text]
>> amelie2:utf32_codepoints()
- = [65[32], 109[32], 233[32], 108[32], 105[32], 101[32]] : [Int32]
+ = [Int32(65), Int32(109), Int32(233), Int32(108), Int32(105), Int32(101)]
>> amelie2:utf8_bytes()
- = [65[B], 109[B], 195[B], 169[B], 108[B], 105[B], 101[B]] : [Byte]
+ = [Byte(0x41), Byte(0x6D), Byte(0xC3), Byte(0xA9), Byte(0x6C), Byte(0x69), Byte(0x65)]
>> amelie:codepoint_names()
= ["LATIN CAPITAL LETTER A", "LATIN SMALL LETTER M", "LATIN SMALL LETTER E WITH ACUTE", "LATIN SMALL LETTER L", "LATIN SMALL LETTER I", "LATIN SMALL LETTER E"]
@@ -216,7 +216,7 @@ func main():
>> house:codepoint_names()
= ["CJK Unified Ideographs-5BB6"]
>> house:utf32_codepoints()
- = [23478[32]]
+ = [Int32(23478)]
>> "🐧":codepoint_names()
= ["PENGUIN"]