aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/text.tm')
-rw-r--r--test/text.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/text.tm b/test/text.tm
index cf95878e..173432ec 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -30,7 +30,7 @@ func main():
= ["A", "m", "é", "l", "i", "e"] : [Text]
>> amelie:utf32_codepoints()
= [Int32(65), Int32(109), Int32(233), Int32(108), Int32(105), Int32(101)]
- >> amelie:utf8_bytes()
+ >> amelie:bytes()
= [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"
@@ -42,7 +42,7 @@ func main():
= ["A", "m", "é", "l", "i", "e"] : [Text]
>> amelie2:utf32_codepoints()
= [Int32(65), Int32(109), Int32(233), Int32(108), Int32(105), Int32(101)]
- >> amelie2:utf8_bytes()
+ >> amelie2:bytes()
= [Byte(0x41), Byte(0x6D), Byte(0xC3), Byte(0xA9), Byte(0x6C), Byte(0x69), Byte(0x65)]
>> amelie:codepoint_names()
@@ -126,7 +126,7 @@ func main():
= yes
>> c == Text.from_codepoints(c:utf32_codepoints())
= yes
- >> c == Text.from_bytes(c:utf8_bytes())!
+ >> c == Text.from_bytes(c:bytes())!
= yes
>> "one$(\n)two$(\n)three":lines()