Fix up tests
This commit is contained in:
parent
316eff8b4f
commit
00fd2b9e67
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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"]
|
||||||
|
Loading…
Reference in New Issue
Block a user