The test case was wrong

This commit is contained in:
Sasha Koshka 2022-09-03 20:07:25 -04:00
parent 9fb75e0228
commit 6446cbfafc
2 changed files with 24 additions and 16 deletions

View File

@ -19,10 +19,10 @@ func ro bMethod
external external
func ro cBasicPhrases func ro cBasicPhrases
--- ---
[fn 329 983 09] [fn 329 983 7]
[fn 329 983 09] [fn 329 983 7]
[fn 329 983 091] [fn 329 983 57]
[fn [gn 329 983 091] 123] [fn [gn 329 983 57] 123]
func ro dArgumentTypes func ro dArgumentTypes
--- ---
[bird tree butterfly.wing "hello world" grass:{Int:mut 8}] [bird tree butterfly.wing "hello world" grass:{Int:mut 8}]
@ -33,20 +33,25 @@ func ro eMath
--- ---
[++ x] [++ x]
[-- y] [-- y]
[set z [+ [* 0392 00] 98 x [/ 9832 y] 930]] [set z [+ [* 250 0] 98 x [/ 9832 y] 930]]
[! true] [! true]
[~ 0b01] [~ 1]
[~= x]
[% 873 32] [% 873 32]
[= 5 5] [= 5 5]
[!= 4 4] [!= 4 4]
[<= 4 98] [<= 4 98]
[< 4 98] [< 4 98]
[<< 0x0F 4] [<< 15 4]
[<<= x 4]
[>= 98 4] [>= 98 4]
[> 98 4] [> 98 4]
[>> 0xF0 4] [>> 240 4]
[| 0b01 0b10] [>>= x 4]
[& 0b110 0b011] [| 1 2]
[|= x 2]
[& 6 3]
[&= x 3]
[&& true true] [&& true true]
[|| true false] [|| true false]
func ro fReturnDirection func ro fReturnDirection
@ -54,9 +59,12 @@ func ro fReturnDirection
--- ---
[someFunc 498 2980 90] -> thing:Int err [someFunc 498 2980 90] -> thing:Int err
[otherFunc] -> thing err:Error [otherFunc] -> thing err:Error
[fn 329 983 091] -> thing:Int err [fn 329 983 57] -> thing:Int err
func ro gControlFlow func ro gControlFlow
--- ---
[defer]
[something]
[otherThing]
[if condition] [if condition]
[something] [something]
[if condition] [if condition]
@ -71,9 +79,9 @@ func ro gControlFlow
[: 324] [: 324]
[something] [something]
[: 93284] [: 93284]
otherThing [otherThing]
[: 9128 34738 7328] [: 9128 34738 7328]
multipleCases [multipleCases]
[:] [:]
[defaultThing] [defaultThing]
[for index:Size element:Int someArray] [for index:Size element:Int someArray]
@ -90,10 +98,10 @@ func ro gControlFlow
[nestedThing] [nestedThing]
[else] [else]
[otherThing] [otherThing]
func hSetPhrase func ro hSetPhrase
--- ---
[set x:Int 3] [set x:Int 3]
[set y:{Int} [. x]] [set y:{Int} [loc x]]
[set z:{Int 8}] [set z:{Int 8}]
398 398
9 9

View File

@ -37,7 +37,7 @@ func ro eMath
--- ---
++ x ++ x
-- y -- y
set z [+ [* 0392 00] 98 x [/ 9832 y] 930] set z [+ [* 0372 00] 98 x [/ 9832 y] 930]
! true ! true
~ 0b01 ~ 0b01