Open younata opened 4 months ago
This test fails, with the contradictory error "expected to be nil, got \<nil>":
func testRequireNil() throws { expect { try require(nil as Int?).to(beNil()) }.toNot(throwError()) }
Which ultimately comes down to us being unable to unwrap nil (because... it's nil!) in (Sync|Async)Requirement.verify (highlighted is the sync variant, but the Async one has the same logic and therefore, same issue): https://github.com/Quick/Nimble/blob/v13.2.1/Sources/Nimble/Requirement.swift#L88-L95
(Sync|Async)Requirement.verify
So... that's fun and unexpected.
This test fails, with the contradictory error "expected to be nil, got \<nil>":
Which ultimately comes down to us being unable to unwrap nil (because... it's nil!) in
(Sync|Async)Requirement.verify
(highlighted is the sync variant, but the Async one has the same logic and therefore, same issue): https://github.com/Quick/Nimble/blob/v13.2.1/Sources/Nimble/Requirement.swift#L88-L95So... that's fun and unexpected.