Skip to content

Commit

Permalink
Merge pull request #145 from CodaFi/final-fixes
Browse files Browse the repository at this point in the history
Make InsufficientCoverage fail on the right line
  • Loading branch information
CodaFi committed Jan 8, 2016
2 parents dbb62cb + 0395c00 commit 7834a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SwiftCheck/TestOperators.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public func <-(checker : AssertiveQuickCheck, @autoclosure(escaping) test : () -
case .NoExpectedFailure(_, _, _):
XCTFail("Expected property to fail but it didn't.", file: checker.file, line: checker.line)
case .InsufficientCoverage(_, _, _):
XCTFail("Property coverage insufficient.")
XCTFail("Property coverage insufficient.", file: checker.file, line: checker.line)
default:
return
}
Expand All @@ -30,7 +30,7 @@ public func <-(checker : AssertiveQuickCheck, test : () -> Testable) {
case .NoExpectedFailure(_, _, _):
XCTFail("Expected property to fail but it didn't.", file: checker.file, line: checker.line)
case .InsufficientCoverage(_, _, _):
XCTFail("Property coverage insufficient.")
XCTFail("Property coverage insufficient.", file: checker.file, line: checker.line)
default:
return
}
Expand Down

0 comments on commit 7834a3e

Please sign in to comment.