How To Unit Test With Optionals In Swift

UPDATE: Having second thoughts about this way… Check out my latest blog post on the topic here.

This morning I woke up to find a very exciting tweet from @almassapargali:

This is a brilliant solution! Much better than what I have been doing until now – force unwrapping optionals. @almassapargali puts it perfectly in his next tweet:

Happy Swiftmas!

Enjoy the article? Join over 20,000+ Swift developers and enthusiasts who get my weekly updates.