aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/nums.tm30
-rw-r--r--test/paths.tm4
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: