From 00fd2b9e6705cf80e315c84b35feb6248305770b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 5 Apr 2025 01:08:12 -0400 Subject: [PATCH] Fix up tests --- test/paths.tm | 4 ++-- test/reductions.tm | 4 ++-- test/tables.tm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/paths.tm b/test/paths.tm index 72cac24..e8cfd2a 100644 --- a/test/paths.tm +++ b/test/paths.tm @@ -24,8 +24,8 @@ func main(): >> tmpfile:append("!") >> tmpfile:read() = "Hello world!"? - >> tmpfile:read_bytes() - = [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x21]? + >> tmpfile:read_bytes()! + = [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x21] >> tmpdir:files():has(tmpfile) = yes diff --git a/test/reductions.tm b/test/reductions.tm index 4f33bb2..f0618b2 100644 --- a/test/reductions.tm +++ b/test/reductions.tm @@ -6,7 +6,7 @@ func main(): >> empty_ints : [Int] = [] >> (+: empty_ints) - = none : Int + = none >> (+: [10, 20, 30]) or 0 = 60 @@ -38,7 +38,7 @@ func main(): = yes >> (<=: empty_ints) - = none : Bool + = none >> (<=: [5, 4, 3, 2, 1])! = no diff --git a/test/tables.tm b/test/tables.tm index e75788b..00dc71d 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -22,7 +22,7 @@ func main(): >> t.length = 2 >> t.fallback - = none : {Text=Int} + = none >> t.keys = ["one", "two"]