Testing the JournalEntry class
Since you have completed writing all the tests for the JournalEntry
class in the previous section, you will now run the test to see if the JournalEntry
class works as expected. Follow these steps:
- In Xcode, choose Test from the Product menu.
- Xcode will automatically run all your tests. Upon completion, you will see the following results:
Figure 25.4: Canvas showing widget preview
The green squares with tick marks show that all the tests have been completed successfully and the JournalEntry
class works as expected. Great job!