                         TestProduct(name: "Foo", targets: ["Foo", "Bar"]),
                     ],
                     dependencies: [
-                        TestDependency(name: "Baz", requirement: "1.0.0"),
+                        TestDependency(name: "Baz", requirement: .upToNextMajor(from: "1.0.0")),
                     ]
                 ),
             ],

            XCTAssertNoDiagnostics(diagnostics)
        }
    }
}

// MARK:- Test Infrastructure


private struct TestDependency {
    let name: String
    let requirement: Requirement
    typealias Requirement = PackageDescription4.Package.Dependency.Requirement

    fileprivate init(name: String, requirement: Requirement) {
        self.name = name
        self.requirement = requirement
    }

    func convert(baseURL: AbsolutePath) -> PackageDescription4.Package.Dependency {
        return .package(url: baseURL.appending(component: name).asString, requirement)
    }
}

