From 77e538aec86a13431f5e4468e1dd38d0fba02b1a Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sun, 29 Jul 2018 10:32:09 +1000 Subject: [PATCH] Fix check_test.go for recent changes --- lang/check/check_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lang/check/check_test.go b/lang/check/check_test.go index 943bb560..70b84463 100644 --- a/lang/check/check_test.go +++ b/lang/check/check_test.go @@ -65,7 +65,7 @@ func TestCheck(tt *testing.T) { i base.i32, ) - pri func foo.bar()() { + pri func foo.bar() { var x base.u8 var y base.i32 = +2 var z base.u64[..123] @@ -156,9 +156,8 @@ func TestCheck(tt *testing.T) { want := [][2]string{ {"a", "array[4] base.u8"}, + {"args", "args"}, {"b", "base.bool"}, - {"in", "in"}, - {"out", "out"}, {"p", "base.i32"}, {"q", "base.i32[0..8]"}, {"this", "ptr foo"}, @@ -206,7 +205,7 @@ func TestConstValues(tt *testing.T) { tm := &t.Map{} for s, wantInt64 := range testCases { - src := "packageid \"test\"\npri func foo()() {\n\t" + s + "\n}\n" + src := "packageid \"test\"\npri func foo() {\n\t" + s + "\n}\n" tokens, _, err := t.Tokenize(tm, filename, []byte(src)) if err != nil {