Skip to content

Commit be00cb4

Browse files
committed
[ConventionTests] Normalize products array
1 parent 8e08aea commit be00cb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/PackageLoadingTests/ConventionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ class ConventionTests: XCTestCase {
598598
}
599599

600600
result.checkProduct("libpm") { productResult in
601-
productResult.check(type: .Library(.Dynamic), modules: ["Foo", "Bar"])
601+
productResult.check(type: .Library(.Dynamic), modules: ["Bar", "Foo"])
602602
}
603603
}
604604
}
@@ -939,7 +939,7 @@ final class PackageBuilderTester {
939939

940940
func check(type: PackageDescription.ProductType, modules: [String], file: StaticString = #file, line: UInt = #line) {
941941
XCTAssertEqual(product.type, type, file: file, line: line)
942-
XCTAssertEqual(product.modules.map{$0.name}, modules, file: file, line: line)
942+
XCTAssertEqual(product.modules.map{$0.name}.sorted(), modules, file: file, line: line)
943943
}
944944
}
945945

0 commit comments

Comments
 (0)