Last active
June 21, 2022 15:15
-
-
Save tugbaaksoy/0720b7945dfa0ccdcbd206e46ce8b838 to your computer and use it in GitHub Desktop.
quick and nimble example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Quick | |
import Nimble | |
@testable import Basket | |
class BasketSpec: QuickSpec { | |
override func spec() { | |
beforeEach{ | |
let apple = Apple() | |
} | |
describe("There are six apples in basket") { | |
context("Take two apples out of the basket") { | |
it("Should be four apples left") { | |
expect(apple.count).to(equal(4)) | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment