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 func ro aBasicExternal
> someInput:Int:mut > someInput:Int:mut
< someOutput:Int 4 < someOutput:Int:<4>
--- ---
external external
func ro bMethod func ro bMethod
@ bird:{Bird} @ bird:{Bird}
> someInput:Int:mut > someInput:Int:mut
< someOutput:Int 4 < someOutput:Int:<4>
--- ---
external external
func ro cBasicPhrases func ro cBasicPhrases
@ -101,20 +101,10 @@ func ro gControlFlow
[otherThing] [otherThing]
func ro hSetPhrase func ro hSetPhrase
--- ---
[= x:Int 3] let x:Int:<3>
[= y:{Int} [loc x]] let y:{Int}:<[loc x]>
[= z:Int:8] let z:Int:8:<398 9 2309 983 -2387 478 555 123>
398 let bird:Bird:(.that:(.whenYou:<99999>) .this:<324>)
9
2309
983
-2387
478
555
123
[= bird:Bird]
.that
.whenYou 99999
.this 324
`, test) `, test)
} }

View File

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