You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: A closure containing the tested behavior, Return true to indicate successful execution or false to indicate test failure. Throw a Directiveto indicate how a test should be interpreted, or throwBailOut` to stop the execution of further tests.
description: A description of the tested behavior. nil by default.
file: The source code file in which this test occurs.
line: The line in source code on which this test occurs.
Returns
A test.
test(_:_:file:line:)
Creates a test from a closure that returns a Boolean value.
body: A closure containing the tested behavior, Return true to indicate successful execution or false to indicate test failure. Throw a Directiveto indicate how a test should be interpreted, or throwBailOut` to stop the execution of further tests.
description: A description of the tested behavior. nil by default.
file: The source code file in which this test occurs.
line: The line in source code on which this test occurs.