aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-19 13:30:45 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-19 13:30:45 -0500
commit4720ca7a5f3ad4bf2a04a6d28d671f03162149a9 (patch)
treea6385a8ad6f03b869e768b91220b2033631d6764 /test/text.tm
parentccada385c4fdc2dc320b0ab468c7413ff27bcc7d (diff)
Rename `Text.utf8_bytes` back to `Text.bytes`
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()