diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 01:07:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-05 01:07:09 -0400 |
| commit | 316eff8b4f6c4f0c119360dfbb94aa0840a7e65a (patch) | |
| tree | 06d2ba0a53874b1b34bf495ce1010ed60547054c /test | |
| parent | 355ad9532163f9513c01aa59333aed5363386022 (diff) | |
Fix up more things
Diffstat (limited to 'test')
| -rw-r--r-- | test/nums.tm | 30 | ||||
| -rw-r--r-- | test/paths.tm | 4 |
2 files changed, 18 insertions, 16 deletions
diff --git a/test/nums.tm b/test/nums.tm index e36ae573..285614d9 100644 --- a/test/nums.tm +++ b/test/nums.tm @@ -22,34 +22,36 @@ func main(): >> Num.INF:isinf() = yes - >> nan : Num = none + >> none_num : Num? = none = none - >> nan == nan + >> none_num == none_num = yes - >> nan < nan + >> none_num < none_num = no - >> nan > nan + >> none_num > none_num = no - >> nan != nan + >> none_num != none_num = no - >> nan <> nan + >> none_num <> none_num = Int32(0) - >> nan == 0.0 + >> none_num == 0.0 = no - >> nan < 0.0 + >> none_num < 0.0 = yes - >> nan > 0.0 + >> none_num > 0.0 = no - >> nan != 0.0 + >> none_num != 0.0 = yes - >> nan <> 0.0 + >> none_num <> 0.0 = Int32(-1) - >> nan + 1 - = none + # >> nan + 1 + # = none >> 0./0. - = none + + # >> 0./0. + # = none >> Num.PI:cos()!:near(-1) = yes diff --git a/test/paths.tm b/test/paths.tm index 4f053485..72cac24d 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -36,9 +36,9 @@ func main(): fail("Couldn't read lines in $tmpfile") >> (./does-not-exist.xxx):read() - = none : Text + = none >> (./does-not-exist.xxx):read_bytes() - = none : [Byte] + = none if lines := (./does-not-exist.xxx):by_line(): fail("I could read lines in a nonexistent file") else: |
