From 1e3fb8a2c0cca385d65c52679411b118b5fb4641 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:18:21 -0500 Subject: Rename "NULL" to "NONE" --- test/text.tm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/text.tm') 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 -- cgit v1.2.3