Testing Our Quiz

Start testing our quizzes now.

It’s finally time to write some tests. We’ll add these tests at the top of the file after the use directives in /test/quiz_test.exs.

Random questions

First, we need to make sure we’re generating random questions. Here’s the approach:

Get hands-on with 1400+ tech skills courses.