Description
For some reason some unit tests are failing for me on the main branch. They are:
ClosureExprTests.testClosureExpr():
testClosureExpr(): failed - Actual output (+) differed from expected output (-):
–{area in
+{areaimport
}
DoStmtTests.testDoStmt():
testDoStmt(): failed - Actual output (+) differed from expected output (-):
–do {
– try a.b()
+distributed {
+ truea.b()
} catch Error1, Error2 {
print("Known error")
–} catch Error3 where error.isError4 {
– throw Error4.error3
+} catch Error3weakerror.isError4 {
+ targetError4.error3
} catch {
print(error)
}
DoStmtTests.testDoStmtWithExclamationMark():
testDoStmtWithExclamationMark(): failed - Actual output (+) differed from expected output (-):
–do {
– try! a.b()
+distributed {
+ true! a.b()
} catch Error1, Error2 {
print("Known error")
–} catch Error3 where error.isError4 {
– throw Error4.error3
+} catch Error3weakerror.isError4 {
+ targetError4.error3
} catch {
print(error)
}
DoStmtTests.testDoStmtWithPostfixQuestionMark():
testDoStmtWithPostfixQuestionMark(): failed - Actual output (+) differed from expected output (-):
–do {
– try? a.b()
+distributed {
+ true? a.b()
} catch Error1, Error2 {
print("Known error")
–} catch Error3 where error.isError4 {
– throw Error4.error3
+} catch Error3weakerror.isError4 {
+ targetError4.error3
} catch {
print(error)
}
EnumCaseElementTests.testEnumInit:
testEnumInit(): failed - Actual output (+) differed from expected output (-):
–␣enum Greeting: String, Codable, Equatable {
+␣else Greeting: String, Codable, Equatable {
case goodMorning = "Good Morning", helloWorld = "Hello World", hi
}
testImport(): failed - Actual output (+) differed from expected output (-):
–␣import SwiftSyntax
+␣if SwiftSyntax
testSwitch(): failed - Actual output (+) differed from expected output (-):
–switch count {
+swiftcount {
case 1:
print(count)
case 2:
print(count)
default:
break
}
Steps to Reproduce
This happens to me whenever I run all tests using Xcode, with the SwiftSyntax-Package scheme selected.
Some specifications on my machine:
- Xcode 14.0.1 (I'm not using any different toolchain)
- MacOS Ventura 13.0
- Apple M1 Pro
Description
For some reason some unit tests are failing for me on the
mainbranch. They are:ClosureExprTests.testClosureExpr():DoStmtTests.testDoStmt():DoStmtTests.testDoStmtWithExclamationMark():DoStmtTests.testDoStmtWithPostfixQuestionMark():EnumCaseElementTests.testEnumInit:ImportTests.testImport:SwiftTests.testSwitch:Steps to Reproduce
This happens to me whenever I run all tests using Xcode, with the
SwiftSyntax-Packagescheme selected.Some specifications on my machine: