From be2673ef2b102c49c4db3e0079b9269b787d821f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 2 Nov 2024 13:51:58 -0400 Subject: Make Text:find() return an optional int --- test/text.tm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/text.tm b/test/text.tm index 3a364917..1c8988ba 100644 --- a/test/text.tm +++ b/test/text.tm @@ -187,13 +187,13 @@ func main(): !! Test text:find() >> " one two three ":find($/{id}/, start=-999) - = 0 + = !Int >> " one two three ":find($/{id}/, start=999) - = 0 + = !Int >> " one two three ":find($/{id}/) - = 2 + = 2? >> " one two three ":find($/{id}/, start=5) - = 8 + = 8? !! Test text slicing: >> "abcdef":slice() -- cgit v1.2.3