Fix up tests

This commit is contained in:
Bruce Hill 2025-04-05 01:08:12 -04:00
parent 316eff8b4f
commit 00fd2b9e67
3 changed files with 5 additions and 5 deletions

View File

@ -24,8 +24,8 @@ func main():
>> tmpfile:append("!") >> tmpfile:append("!")
>> tmpfile:read() >> tmpfile:read()
= "Hello world!"? = "Hello world!"?
>> tmpfile:read_bytes() >> tmpfile:read_bytes()!
= [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x21]? = [0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x77, 0x6F, 0x72, 0x6C, 0x64, 0x21]
>> tmpdir:files():has(tmpfile) >> tmpdir:files():has(tmpfile)
= yes = yes

View File

@ -6,7 +6,7 @@ func main():
>> empty_ints : [Int] = [] >> empty_ints : [Int] = []
>> (+: empty_ints) >> (+: empty_ints)
= none : Int = none
>> (+: [10, 20, 30]) or 0 >> (+: [10, 20, 30]) or 0
= 60 = 60
@ -38,7 +38,7 @@ func main():
= yes = yes
>> (<=: empty_ints) >> (<=: empty_ints)
= none : Bool = none
>> (<=: [5, 4, 3, 2, 1])! >> (<=: [5, 4, 3, 2, 1])!
= no = no

View File

@ -22,7 +22,7 @@ func main():
>> t.length >> t.length
= 2 = 2
>> t.fallback >> t.fallback
= none : {Text=Int} = none
>> t.keys >> t.keys
= ["one", "two"] = ["one", "two"]