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