S01E24: [TDD ๐Ÿ… 21] Running the complete Swift Quiz app for the first time

In this episode, we plug all the modules together and play the Quiz game for the first time!

As weโ€™re creating questions and answers for the Quiz and connecting all modules together, everything seems fine, untilโ€ฆ Bam!

Type [String] does not conform to protocol โ€˜Equatableโ€™.

We discuss the reason why the foundation Array type not conforming to Equatable is a limitation in Swift so far and we consider possible solutions.

We decide to change it to a Set rather than an Array since we have already solved the order problem. To do so, we undergo a big refactoring backed up by our tests, which goes smoothly. TDD paid off once again!

Finally, we run the application for the first time and... it works!

Subscribe now to our Youtube channel and catch free new episodes every week and follow along the project's progress on GitHub.