sparta-science / Legible

Quick and Nimble Behaviors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legible

Quick and Nimble Behaviors

XCode Tests

Example

See included examples in Example/Tests

CombinePublisher

context("Just value") {
    itBehavesLike(CombinePublisher.self) {
        Just("apple")
            .shouldFinish(expectedValue: "apple")
            .immediately
    }
}

from BehavesLikeCombineSpec

AsciiTable

context("add to number to produce result") {
    itBehavesLike(AsciiTable.self) {
        """
        |-----------------------|
        |      add integers     |
        |-----------------------|
        | number | add | result |
        |-----------------------|
        | 1      |  1  |   2    |
        | -1     |  1  |   0    |
        | 998    |  2  |  1000  |
        |-----------------------|
        """
    }
}

from BehavesLikeAsciiTableSpec

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Legible is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Legible',
    :git => 'https://github.com/sparta-science/Legible/'

License

Legible is available under the MIT license. See the LICENSE file for more info.

About

Quick and Nimble Behaviors

License:MIT License


Languages

Language:Swift 98.3%Language:Ruby 1.7%