From 767e7bd33c27cfb55c326cb9e84bf4d20070be50 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 2 Apr 2024 02:59:49 -0400 Subject: [PATCH] Fix analyzer tests that used "switch" as function name --- analyzer/control-flow_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/analyzer/control-flow_test.go b/analyzer/control-flow_test.go index 420af87..247d405 100644 --- a/analyzer/control-flow_test.go +++ b/analyzer/control-flow_test.go @@ -103,7 +103,7 @@ U: (| Int F64 UInt) func TestSwitch (test *testing.T) { testString (test, ` -[switch x:Int]:Int = switch x +[f x:Int]:Int = switch x | 0 5 | 1 4 | 2 3 @@ -134,7 +134,7 @@ func TestSwitchErrBadLiteral (test *testing.T) { testStringErr (test, "cannot use array literal as Int", 4, 4, ` -[switch x:Int]:Int = switch x +[f x:Int]:Int = switch x | 0 5 | (1) 4 | 2 3 @@ -146,7 +146,7 @@ func TestSwitchErrNotConstant (test *testing.T) { testStringErr (test, "y cannot represent a constant integer", 7, 4, ` -[switch x:Int]:Int = { +[f x:Int]:Int = { y:Int = 1 switch x @@ -162,7 +162,7 @@ func TestSwitchErrDuplicate (test *testing.T) { testStringErr (test, "65 already listed in match at stream0.fspl:6:2", 7, 4, ` -[switch x:I8]:Int = switch x +[f x:I8]:Int = switch x | 0 5 | 1 4 | 2 3