From 816076eac8d54f2e350a50d9ea2640c55a0e8fa1 Mon Sep 17 00:00:00 2001 From: Robert Widmann Date: Wed, 1 Nov 2017 22:20:44 -0400 Subject: [PATCH] Update for Xcode 9.1 --- Cartfile.resolved | 2 +- Carthage/Checkouts/FileCheck | 2 +- Sources/SwiftCheck/Arbitrary.swift | 2 +- Sources/SwiftCheck/CoArbitrary.swift | 2 +- Sources/SwiftCheck/Property.swift | 2 +- Tests/SwiftCheckTests/ComplexSpec.swift | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index 32291f6..11ebc19 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "trill-lang/FileCheck" "0.0.3" +github "trill-lang/FileCheck" "0.0.4" diff --git a/Carthage/Checkouts/FileCheck b/Carthage/Checkouts/FileCheck index 482e229..0830734 160000 --- a/Carthage/Checkouts/FileCheck +++ b/Carthage/Checkouts/FileCheck @@ -1 +1 @@ -Subproject commit 482e22960391b02e3630ae3af4dce64d16dd63e7 +Subproject commit 083073480112406580f0242036a079f9f8b170ad diff --git a/Sources/SwiftCheck/Arbitrary.swift b/Sources/SwiftCheck/Arbitrary.swift index 755d2fe..ba885e1 100644 --- a/Sources/SwiftCheck/Arbitrary.swift +++ b/Sources/SwiftCheck/Arbitrary.swift @@ -314,7 +314,7 @@ extension String : Arbitrary { /// The default shrinking function for `String` values. public static func shrink(_ s : String) -> [String] { - return [Character].shrink([Character](s.characters)).map { String($0) } + return [Character].shrink(s.map{$0}).map { String($0) } } } diff --git a/Sources/SwiftCheck/CoArbitrary.swift b/Sources/SwiftCheck/CoArbitrary.swift index 53f1388..582719a 100644 --- a/Sources/SwiftCheck/CoArbitrary.swift +++ b/Sources/SwiftCheck/CoArbitrary.swift @@ -71,7 +71,7 @@ extension String : CoArbitrary { } return comp( Character.coarbitrary(x[x.startIndex]), - String.coarbitrary(String(x[x.characters.index(after: x.startIndex)..]) -> Gen { extension String { fileprivate var initial : String { - return String(self[self.startIndex..