From 5f0e4697b5eb99349ca6db265ff2c170aa22bed1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 29 Sep 2022 02:18:47 -0400 Subject: [PATCH] Made some updates to func test case --- parser/func_test.go | 14 +++++++------- tests/parser/func/main.arf | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/parser/func_test.go b/parser/func_test.go index e44e528..c111e6d 100644 --- a/parser/func_test.go +++ b/parser/func_test.go @@ -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) } diff --git a/tests/parser/func/main.arf b/tests/parser/func/main.arf index 2834cfe..0f33b45 100644 --- a/tests/parser/func/main.arf +++ b/tests/parser/func/main.arf @@ -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