From 316eff8b4f6c4f0c119360dfbb94aa0840a7e65a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 5 Apr 2025 01:07:09 -0400 Subject: Fix up more things --- test/nums.tm | 30 ++++++++++++++++-------------- test/paths.tm | 4 ++-- 2 files changed, 18 insertions(+), 16 deletions(-) (limited to 'test') 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: -- cgit v1.2.3