镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
swiftstackstashPublic

About

Simple testing

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

Repository files navigation

Test

Test utils. Simplified.

Example

import Test

class TestTests: TestCase {
    func testExpect() {
        expect(true == true)
        expect(true != false)
        expect(42 > 0)
    }

    func testExpectMessage() {
        expect(true == true, "two true to be true")
    }

    func testExpectError() {
        enum Error: Swift.Error {
            case bsod
        }

        func runVisualStudio() throws {
            throw Error.bsod
        }

        expect(throws: Error.bsod) {
            try runVisualStudio()
        }
    }
}

About

Simple testing

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages