diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:40:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:40:17 -0400 |
| commit | 59845e610f2c90474f34079d27b5f1e07071ded4 (patch) | |
| tree | 1066ab6c5c6e6620adda6ac4575703b9d4bf0a0a /test/text.tm | |
| parent | 95633b1cc2da5294d9aec8c7eb9fca9a15c1a8bf (diff) | |
Deprecate `!!` print statement
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/text.tm b/test/text.tm index 2e061415..df48470e 100644 --- a/test/text.tm +++ b/test/text.tm @@ -1,6 +1,6 @@ func main(): str := "Hello Amélie!" - !! Testing strings like $str + say("Testing strings like $str") >> str:upper() = "HELLO AMÉLIE!" @@ -100,7 +100,7 @@ func main(): " = "line one$\nline two" - !! Interpolation tests: + say("Interpolation tests:") >> "A $(1+2)" = "A 3" >> 'A $(1+2)' @@ -138,7 +138,7 @@ func main(): >> "":lines() = [] - !! Test splitting and joining text: + say("Test splitting and joining text:") >> "one,, two,three":split(",") = ["one", "", " two", "three"] >> [t for t in "one,, two,three":by_split(",")] @@ -177,7 +177,7 @@ func main(): >> "":split() = [] - !! Test text slicing: + say("Test text slicing:") >> "abcdef":slice() = "abcdef" >> "abcdef":slice(from=3) @@ -237,7 +237,7 @@ func main(): = "eilémA olleh" do: - !! Testing concatenation-stability: + say("Testing concatenation-stability:") ab := Text.from_codepoint_names(["LATIN SMALL LETTER E", "COMBINING VERTICAL LINE BELOW"])! >> ab:codepoint_names() = ["LATIN SMALL LETTER E", "COMBINING VERTICAL LINE BELOW"] |
