File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,16 @@ final class AttributeTests: XCTestCase {
542
542
}
543
543
544
544
func testPackageAttribute( ) {
545
- AssertParse ( #"@_package(path: "../my-package") import A"# )
546
- AssertParse ( #"@_package(url: "https://example.com/package.git", from: "0.0.1") @_exported import A"# )
545
+ AssertParse ( #"@_package(path: "../my-package", product: "AA") import A"# )
546
+ AssertParse ( #"@_package(url: "https://example.com/package.git", from: "0.0.1") import A"# )
547
+ AssertParse ( #"@_package(url: "https://example.com/package.git", .upToNextMinor(from: "0.1.0")) import A"# )
548
+ AssertParse ( #"@_package(id: "Example.MyPackage", exact: "1.0.0") import A"# )
549
+ AssertParse ( #"@_package(id: "Example.MyPackage", "0.1.0"..<"0.3.0") import A"# )
550
+ AssertParse (
551
+ """
552
+ @_package(url: " https://example.com/package.git " , from: " 0.0.1 " , product: " AA " )
553
+ @_exported import A
554
+ """
555
+ )
547
556
}
548
557
}
You can’t perform that action at this time.
0 commit comments