@@ -2717,7 +2717,7 @@ final class StatementExpressionTests: ParserTestCase {
2717
2717
func testClosureWithMissingParentheses() {
2718
2718
assertParse(
2719
2719
"""
2720
- _ = { 1 ️⃣a: Int, b: Int 2 ️⃣ in
2720
+ _ = { 1 ️⃣a: Int, b: Int 2 ️⃣ in
2721
2721
}
2722
2722
""" ,
2723
2723
diagnostics: [
@@ -2742,7 +2742,7 @@ final class StatementExpressionTests: ParserTestCase {
2742
2742
func testClosureWithReturnArrowAndMissingParentheses() {
2743
2743
assertParse(
2744
2744
"""
2745
- _ = { 1 ️⃣a: Int, b: 2 ️⃣Int 3 ️⃣ -> Int 4 ️⃣ in
2745
+ _ = { 1 ️⃣a: Int, b: 2 ️⃣Int 3 ️⃣ -> Int 4 ️⃣ in
2746
2746
}
2747
2747
""" ,
2748
2748
diagnostics: [
@@ -2834,12 +2834,12 @@ final class StatementExpressionTests: ParserTestCase {
2834
2834
fixedSource: " [() async throws (MyError) -> Void]() "
2835
2835
)
2836
2836
assertParse(
2837
- " [() 1️⃣try (MyError) async -> Void]() " ,
2837
+ " [()1️⃣ try (MyError) async -> Void]() " ,
2838
2838
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2839
2839
fixedSource: " [(), try(MyError) async -> Void]() "
2840
2840
)
2841
2841
assertParse(
2842
- " [() 1️⃣try async(MyError) -> Void]() " ,
2842
+ " [()1️⃣ try async(MyError) -> Void]() " ,
2843
2843
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2844
2844
fixedSource: " [(), try async(MyError) -> Void]() "
2845
2845
)
@@ -2859,7 +2859,7 @@ final class StatementExpressionTests: ParserTestCase {
2859
2859
fixedSource: " [() async throws (MyError) -> Void]() "
2860
2860
)
2861
2861
assertParse(
2862
- " [() 1️⃣try (MyError) 2️⃣await 3️⃣-> Void]() " ,
2862
+ " [()1️⃣ try (MyError)2️⃣ await 3️⃣-> Void]() " ,
2863
2863
diagnostics: [
2864
2864
DiagnosticSpec(
2865
2865
locationMarker: " 1️⃣ " ,
@@ -2880,22 +2880,22 @@ final class StatementExpressionTests: ParserTestCase {
2880
2880
fixedSource: " [(), try(MyError), await <#expression#> -> Void]() "
2881
2881
)
2882
2882
assertParse(
2883
- " [() 1️⃣try await(MyError) -> Void]() " ,
2883
+ " [()1️⃣ try await(MyError) -> Void]() " ,
2884
2884
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2885
2885
fixedSource: " [(), try await(MyError) -> Void]() "
2886
2886
)
2887
2887
assertParse(
2888
- " [() 1️⃣async (MyError) -> Void]() " ,
2888
+ " [()1️⃣ async (MyError) -> Void]() " ,
2889
2889
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2890
2890
fixedSource: " [(), async(MyError) -> Void]() "
2891
2891
)
2892
2892
assertParse(
2893
- " [() 1️⃣await (MyError) -> Void]() " ,
2893
+ " [()1️⃣ await (MyError) -> Void]() " ,
2894
2894
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2895
2895
fixedSource: " [(), await(MyError) -> Void]() "
2896
2896
)
2897
2897
assertParse(
2898
- " [() 1️⃣try (MyError) -> Void]() " ,
2898
+ " [()1️⃣ try (MyError) -> Void]() " ,
2899
2899
diagnostics: [DiagnosticSpec(message: " expected ',' in array element " , fixIts: [ " insert ',' " ])],
2900
2900
fixedSource: " [(), try(MyError) -> Void]() "
2901
2901
)
@@ -2914,7 +2914,7 @@ final class StatementExpressionTests: ParserTestCase {
2914
2914
assertParse( " [() ()] " )
2915
2915
2916
2916
assertParse(
2917
- " [1 1️⃣2 ] " ,
2917
+ " [11️⃣ 2 ] " ,
2918
2918
diagnostics: [
2919
2919
DiagnosticSpec(
2920
2920
message: " expected ',' in array element " ,
@@ -2925,7 +2925,7 @@ final class StatementExpressionTests: ParserTestCase {
2925
2925
)
2926
2926
2927
2927
assertParse(
2928
- # " [ " hello " 1️⃣" world " ] " #,
2928
+ # " [ " hello " 1️⃣ " world " ] " #,
2929
2929
diagnostics: [
2930
2930
DiagnosticSpec(
2931
2931
message: " expected ',' in array element " ,
@@ -2938,7 +2938,7 @@ final class StatementExpressionTests: ParserTestCase {
2938
2938
2939
2939
func testDictionaryExprWithNoCommas() {
2940
2940
assertParse(
2941
- " [1: () 1️⃣2 : ()] " ,
2941
+ " [1: ()1️⃣ 2 : ()] " ,
2942
2942
diagnostics: [
2943
2943
DiagnosticSpec(
2944
2944
message: " expected ',' in dictionary element " ,
@@ -2949,7 +2949,7 @@ final class StatementExpressionTests: ParserTestCase {
2949
2949
)
2950
2950
2951
2951
assertParse(
2952
- # " [ " foo " : 1 1️⃣ " bar " : 2] " #,
2952
+ # " [ " foo " : 11️⃣ " bar " : 2] " #,
2953
2953
diagnostics: [
2954
2954
DiagnosticSpec(
2955
2955
message: " expected ',' in dictionary element " ,
@@ -2960,7 +2960,7 @@ final class StatementExpressionTests: ParserTestCase {
2960
2960
)
2961
2961
2962
2962
assertParse(
2963
- # " [1: " hello " 1️⃣2 : " world " ] " #,
2963
+ # " [1: " hello " 1️⃣ 2 : " world " ] " #,
2964
2964
diagnostics: [
2965
2965
DiagnosticSpec(
2966
2966
message: " expected ',' in dictionary element " ,
0 commit comments