diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 01:43:20 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 01:43:20 -0400 |
| commit | cb6a5f264c857691cf3db3c9d8e12375e4dc75fd (patch) | |
| tree | 38f938b4bd9462f21384604c3473841454fe4eef /test | |
| parent | 00fd2b9e6705cf80e315c84b35feb6248305770b (diff) | |
Fix up some tests and type_or_type
Diffstat (limited to 'test')
| -rw-r--r-- | test/tables.tm | 4 | ||||
| -rw-r--r-- | test/text.tm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/tables.tm b/test/tables.tm index 00dc71da..20d76269 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -99,8 +99,8 @@ func main(): >> ints : [{Int=Int}] = [{}, {0=0}, {99=99}, {1=1, 2=2, 3=3}, {1=1, 99=99, 3=3}, {1=1, 2=-99, 3=3}, {1=1, 99=-99, 3=4}]:sorted() = [{}, {0=0}, {1=1, 2=-99, 3=3}, {1=1, 2=2, 3=3}, {1=1, 99=99, 3=3}, {1=1, 99=-99, 3=4}, {99=99}] - >> other_ints : [{Int}] = [{}, {1}, {2}, {99}, {0, 3}, {1, 2}, {99}]:sorted() - = [{}, {0, 3}, {1}, {1, 2}, {2}, {99}, {99}] + >> other_ints : [{Int}] = [{/}, {1}, {2}, {99}, {0, 3}, {1, 2}, {99}]:sorted() + = [{/}, {0, 3}, {1}, {1, 2}, {2}, {99}, {99}] do: # Default values: diff --git a/test/text.tm b/test/text.tm index 0316a96f..2e061415 100644 --- a/test/text.tm +++ b/test/text.tm @@ -56,7 +56,7 @@ func main(): = [65, 109, 233, 108, 105, 101] >> amelie:bytes() = [0x41, 0x6D, 0xC3, 0xA9, 0x6C, 0x69, 0x65] - >> Text.from_bytes([0x6D, 0xC3, 0xA9, 0x6C, 0x69, 0x65])! + >> Text.from_bytes([0x41, 0x6D, 0xC3, 0xA9, 0x6C, 0x69, 0x65])! = "Amélie" >> Text.from_bytes([Byte(0xFF)]) = none @@ -202,7 +202,7 @@ func main(): = ["PENGUIN"] >> Text.from_codepoint_names(["not a valid name here buddy"]) - = none : Text + = none >> "Hello":replace("ello", "i") = "Hi" |
