Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

test(_:)

mattt edited this page Jan 8, 2021 · 2 revisions

test(_:)

Creates a test from a closure that produces an outcome.

public func test(_ body: @escaping () -> Outcome) -> Test

Parameters

  • body: A closure that produces an outcome for some tested behavior.

Returns

A test.

Clone this wiki locally