File tree 1 file changed +26
-2
lines changed
1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -216,9 +216,9 @@ public class EvaluateTests: XCTestCase {
216
216
assertIfConfig ( " canImport(SwiftSyntax, _version: 5.10) " , . inactive)
217
217
assertIfConfig ( #"canImport(SwiftSyntax, _version: "5.9")"# , . active)
218
218
assertIfConfig ( " canImport(SwiftSyntax, _underlyingVersion: 5009) " , . active)
219
- assertIfConfig ( " canImport(SwiftSyntax, _underlyingVersion: 5009.10 " , . inactive)
219
+ assertIfConfig ( " canImport(SwiftSyntax, _underlyingVersion: 5009.10) " , . inactive)
220
220
assertIfConfig (
221
- " canImport(SwiftSyntax, _underlyingVersion: 5009.10.5.4.2.3.5 " ,
221
+ " canImport(SwiftSyntax, _underlyingVersion: 5009.10.5.4.2.3.5) " ,
222
222
. inactive,
223
223
diagnostics: [
224
224
DiagnosticSpec (
@@ -229,6 +229,30 @@ public class EvaluateTests: XCTestCase {
229
229
)
230
230
]
231
231
)
232
+ assertIfConfig (
233
+ " canImport(SwiftSyntax, _version: 20A301) " ,
234
+ . unparsed,
235
+ diagnostics: [
236
+ DiagnosticSpec (
237
+ message: " 'canImport' version check has invalid version '20A301' " ,
238
+ line: 1 ,
239
+ column: 34 ,
240
+ severity: . error
241
+ )
242
+ ]
243
+ )
244
+ assertIfConfig (
245
+ #"canImport(SwiftSyntax, _version: "20A301")"# ,
246
+ . unparsed,
247
+ diagnostics: [
248
+ DiagnosticSpec (
249
+ message: #"'canImport' version check has invalid version '"20A301"'"# ,
250
+ line: 1 ,
251
+ column: 34 ,
252
+ severity: . error
253
+ )
254
+ ]
255
+ )
232
256
}
233
257
}
234
258
You can’t perform that action at this time.
0 commit comments