Edited func section test case

This commit is contained in:
Sasha Koshka 2022-09-17 12:07:39 -04:00
parent bd25006897
commit a492622e30
2 changed files with 17 additions and 28 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
@ -101,20 +101,10 @@ func ro gControlFlow
[otherThing]
func ro hSetPhrase
---
[= x:Int 3]
[= y:{Int} [loc x]]
[= z:Int:8]
398
9
2309
983
-2387
478
555
123
[= 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:(.that:(.whenYou:<99999>) .this:<324>)
`, test)
}

View File

@ -2,14 +2,14 @@
---
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
@ -124,13 +124,12 @@ func ro gControlFlow
func ro hSetPhrase
---
= x:Int 3
let x:Int:<3>
# loc is a reference, similar to * in C
= y:{Int} [loc x]
= z:Int:8
398 9 2309 983 -2387
478 555 123
= bird:Bird
.that
.whenYou 99999
.this 324
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>)