Skip to content

Commit

Permalink
Merge pull request #576 from Quick/7.x-pr531
Browse files Browse the repository at this point in the history
[7.x] Make Expectation constructor public
  • Loading branch information
ikesyo authored Jul 18, 2018
2 parents b667637 + 168c279 commit 0c4ebf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Nimble/Expectation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public struct Expectation<T> {

public let expression: Expression<T>

public init(expression: Expression<T>) {
self.expression = expression
}

public func verify(_ pass: Bool, _ message: FailureMessage) {
let handler = NimbleEnvironment.activeInstance.assertionHandler
handler.assert(pass, message: message, location: expression.location)
Expand Down

0 comments on commit 0c4ebf1

Please sign in to comment.