Legible
Quick and Nimble Behaviors
Example
See included examples in Example/Tests
CombinePublisher
context("Just value") {
itBehavesLike(CombinePublisher.self) {
Just("apple")
.shouldFinish(expectedValue: "apple")
.immediately
}
}
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.