Made some updates to func test case

This commit is contained in:
Sasha Koshka 2022-09-29 02:18:47 -04:00
parent 011c968192
commit 5f0e4697b5
2 changed files with 9 additions and 9 deletions

View File

@ -8,13 +8,13 @@ func TestFunc (test *testing.T) {
---
func ro aBasicExternal
> someInput:Int:mut
< someOutput:Int:<4>
< someOutput:Int 4
---
external
func ro bMethod
@ bird:{Bird}
> someInput:Int:mut
< someOutput:Int:<4>
< someOutput:Int 4
---
external
func ro cBasicPhrases
@ -99,11 +99,11 @@ func ro gControlFlow
[nestedThing]
[else]
[otherThing]
func ro hSetPhrase
func ro hDataInit
---
[let x:Int:<3>]
[let y:{Int}:<[loc x]>]
[let z:Int:8:<398 9 2309 983 -2387 478 555 123>]
[let bird:Bird:(.that:(.whenYou:<99999>) .this:<324>)]
[let x:Int 3]
[let y:{Int} [loc x]]
[let z:Int:8 (398 9 2309 983 -2387 478 555 123)]
[let bird:Bird ((99999) 324)]
`, test)
}

View File

@ -122,9 +122,9 @@ func ro gControlFlow
else
otherThing
func ro hSetPhrase
func ro hDataInit
---
let x:Int:<3>
let x:Int 3
# loc is a reference, similar to * in C
let y:{Int} [loc x]
let z:Int:8 (398 9 2309 983 -2387