Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to support building with Swift 4.2 #37

Merged
merged 3 commits into from
Sep 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// swift-tools-version:4.2

import PackageDescription


let package = Package(
name: "Spectre",
products: [
.library(name: "Spectre", targets: ["Spectre"]),
],
targets: [
.target(name: "Spectre", dependencies: []),
.testTarget(name: "SpectreTests", dependencies: ["Spectre"]),
],
swiftLanguageVersions: [.v4, .v4_2]
)
2 changes: 1 addition & 1 deletion Sources/Spectre/Expectation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct ExpectationFailure : FailureType {

open class Expectation<T> : ExpectationType {
public typealias ValueType = T
open let expression: () throws -> ValueType?
public let expression: () throws -> ValueType?

let file: String
let line: Int
Expand Down