diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 13:51:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-02 13:51:58 -0400 |
| commit | be2673ef2b102c49c4db3e0079b9269b787d821f (patch) | |
| tree | cc6ab972c658c3c06dc234642cb702b243170f41 /test/text.tm | |
| parent | a60e0e5e9a5fc0e625ece0151328cde6147e8abf (diff) | |
Make Text:find() return an optional int
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 8 |
1 files changed, 4 insertions, 4 deletions
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() |
