Skip to content

Commit

Permalink
Use correct macro name in the post about unwrapping optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaprogramiacz committed Nov 24, 2024
1 parent 93c37bc commit fd7fcc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Optionals are a core of Swift - we deal with them daily, both in production and

In XCTest there is `XCTUnwrap` operator.

Swift Testing introduces `#expect` macro.
Swift Testing introduces `#require` macro.

Is there any difference between them? Not really! Both require the test function to handle exceptions and `try` keyword before.

Expand Down

0 comments on commit fd7fcc1

Please sign in to comment.