Closed lwoydziak closed 2 years ago
import Quick import Nimble final class Broken: XCTestCase { func testBrokenExpectation(){ expect(URL(string: "https://example.blah/")!).notTo(equal(URL(string: "https://another.com")!)) expect(URL(string: "https://example.blah/")!).to(equal(URL(string: "https://another.com")!)) } }
Expected following to cause test failure:
expect(URL(string: "https://example.blah/")!).to(equal(URL(string: "https://another.com")!))
Both lines passed.
List the software versions you're using:
Xcode Default
Please also mention which package manager you used and its version. Delete the other package managers in this list:
swift build --version
See the snippet above.
Sorry for this issue, the error was buried in previous console output.
What did you do?
What did you expect to happen?
Expected following to cause test failure:
What actually happened instead?
Both lines passed.
Environment
List the software versions you're using:
Xcode Default
.)Please also mention which package manager you used and its version. Delete the other package managers in this list:
swift build --version
in Terminal)Project that demonstrates the issue
See the snippet above.