aboutsummaryrefslogtreecommitdiff
path: root/test/text.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-24 16:18:21 -0500
commit1e3fb8a2c0cca385d65c52679411b118b5fb4641 (patch)
treee8e7ae5b4a8b4f39ed867c238f1a05494b6a50ac /test/text.tm
parent0e10313d64f54dd587ebbcd5f413bd999333c911 (diff)
Rename "NULL" to "NONE"
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 cd00940f..c6fb6ad7 100644
--- a/test/text.tm
+++ b/test/text.tm
@@ -35,7 +35,7 @@ func main():
>> Text.from_bytes([:Byte 0x41, 0x6D, 0xC3, 0xA9, 0x6C, 0x69, 0x65])!
= "Amélie"
>> Text.from_bytes([Byte(0xFF)])
- = NULL : Text?
+ = NONE : Text?
>> amelie2 := "Am$(\U65\U301)lie"
>> amelie2:split()
@@ -189,9 +189,9 @@ func main():
!! Test text:find()
>> " one two three ":find($/{id}/, start=-999)
- = NULL : Match?
+ = NONE : Match?
>> " one two three ":find($/{id}/, start=999)
- = NULL : Match?
+ = NONE : Match?
>> " one two three ":find($/{id}/)
= Match(text="one", index=2, captures=["one"]) : Match?
>> " one two three ":find($/{id}/, start=5)
@@ -222,7 +222,7 @@ func main():
= ["PENGUIN"]
>> Text.from_codepoint_names(["not a valid name here buddy"])
- = NULL : Text?
+ = NONE : Text?
>> "one two; three four":find_all($/; {..}/)
= [Match(text="; three four", index=8, captures=["three four"])]
@@ -249,11 +249,11 @@ func main():
>> "Hello":matches($/{id}/)
= ["Hello"] : [Text]?
>> "Hello":matches($/{lower}/)
- = NULL : [Text]?
+ = NONE : [Text]?
>> "Hello":matches($/{upper}/)
- = NULL : [Text]?
+ = NONE : [Text]?
>> "Hello...":matches($/{id}/)
- = NULL : [Text]?
+ = NONE : [Text]?
if matches := "hello world":matches($/{id} {id}/):
>> matches