Skip to content

Glossary: SwiftUI

#expect

Also written: expect

A Swift Testing macro that checks a condition is true. If it isn't, the test fails and shows both sides of the check, but keeps running.

Where the book teaches it

Related terms

#require@TestSwift Testing