<commit_before># QuickSwiftCheck

![](https://img.shields.io/github/release/akashivskyy/QuickSwiftCheck.svg)
![](https://img.shields.io/badge/swift-3.1-orange.svg)
[![](https://img.shields.io/badge/carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)
[![](https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg)](https://cocoapods.org)

[Quick](https://github.com/Quick/Quick) + [Nimble](https://github.com/Quick/Nimble) + [SwiftCheck](https://github.com/typelift/SwiftCheck) = **QuickSwiftCheck**.

## Requirements

QuickSwiftCheck is written in Swift 3.1 and supports **iOS 8.0+**, **macOS 10.10+** and **tvOS 9.0+**.

## Usage

QuickSwiftCheck allows you to use [Quick](https://github.com/Quick/Quick) DSL and [Nimble](https://github.com/Quick/Nimble) expectations together with [SwiftCheck](https://github.com/typelift/SwiftCheck):

```swift
sc_it("Int.hashValue should respect the axiom") {
    forAll { (x: Int, y: Int) in
        (x == y) ==> expect(x.hashValue).sc_to(equal(y.hashValue))
    }
}
```

QuickSwiftCheck adds `sc_` variants to `it`, `fit`, `xit`, `to` and `toNot` functions, so that the original functions remain not overloaded. This means you can use `it` to create a regular test example and `to` to create a regular expectation:
<commit_msg>Update readme with bumped swift version<commit_after># QuickSwiftCheck

![](https://img.shields.io/github/release/akashivskyy/QuickSwiftCheck.svg)
![](https://img.shields.io/badge/swift-3.2-orange.svg)
[![](https://img.shields.io/badge/carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)
[![](https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg)](https://cocoapods.org)

[Quick](https://github.com/Quick/Quick) + [Nimble](https://github.com/Quick/Nimble) + [SwiftCheck](https://github.com/typelift/SwiftCheck) = **QuickSwiftCheck**.

## Requirements

QuickSwiftCheck is written in Swift 3.2 and supports **iOS 8.0+**, **macOS 10.10+** and **tvOS 9.0+**.

## Usage

QuickSwiftCheck allows you to use [Quick](https://github.com/Quick/Quick) DSL and [Nimble](https://github.com/Quick/Nimble) expectations together with [SwiftCheck](https://github.com/typelift/SwiftCheck):

```swift
sc_it("Int.hashValue should respect the axiom") {
    forAll { (x: Int, y: Int) in
        (x == y) ==> expect(x.hashValue).sc_to(equal(y.hashValue))
    }
}
```

QuickSwiftCheck adds `sc_` variants to `it`, `fit`, `xit`, `to` and `toNot` functions, so that the original functions remain not overloaded. This means you can use `it` to create a regular test example and `to` to create a regular expectation:

{'fraction_non_alphanumeric': 0.17911585365853658, 'fraction_numerical': 0.009146341463414634, 'mean_word_length': 4.993150684931507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 24, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1931526', 'n_tokens_mistral': 978, 'n_tokens_neox': 887, 'n_words': 193}