Sha256: bb1a6d2960386f26b48a4d658dd0b63f4e766ee723359330457bf180c50a3622

Contents?: true

Size: 1.13 KB

Versions: 17

Compression:

Stored size: 1.13 KB

Contents

// https://github.com/Quick/Quick

import Quick
import Nimble
import PROJECT

class TableOfContentsSpec: QuickSpec {
    override func spec() {
        describe("these will fail") {

            it("can do maths") {
                expect(1) == 2
            }

            it("can read") {
                expect("number") == "string"
            }

            it("will eventually fail") {
                expect("time").toEventually( equal("done") )
            }
            
            context("these will pass") {

                it("can do maths") {
                    expect(23) == 23
                }

                it("can read") {
                    expect("🐮") == "🐮"
                }

                it("will eventually pass") {
                    var time = "passing"

                    DispatchQueue.main.async {
                        time = "done"
                    }

                    waitUntil { done in
                        Thread.sleep(forTimeInterval: 0.5)
                        expect(time) == "done"

                        done()
                    }
                }
            }
        }
    }
}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ykioscmd-0.6.7 lib/yk_command/project/test_examples/quick.swift
ykioscmd-0.6.6 lib/yk_command/project/test_examples/quick.swift
yk_command-0.6.5 lib/yk_command/project/test_examples/quick.swift
yk_command-0.6.4 lib/yk_command/project/test_examples/quick.swift
yk_command-0.6.2 lib/yk_command/project/test_examples/quick.swift
yk_command-0.6.1 lib/yk_command/project/test_examples/quick.swift
yk_command-0.6.0 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.91 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.9 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.8 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.7 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.6 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.5 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.4 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.3 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.2 lib/yk_command/project/test_examples/quick.swift
yk_command-0.5.1 lib/yk_command/project/test_examples/quick.swift