Test-Driven Development | raywenderlich.com

This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8458722-testing-in-ios/lessons/7


I don’t think I understood how the pattern matching worked in itself. Can you guide me to a resource that explains the underlying functionality?

To be more exact, it would be around the 6:20 min mark of the video. How does having a “~=” function enable the “\.isNumber”? Or am I looking at this all wrong?


I tried to give some background on the pattern matching operator at 4:00. Please have another watch, there, and read the “Expression Pattern” section here: Patterns — The Swift Programming Language (Swift 5.7), for more info.

1 Like