Testing in iOS, Episode 8: Red-Green-Refactor | raywenderlich.com

Test-Driven Development boils down to a simple process: the Red-Green-Refactor Cycle. Red is a state of test failure, and Green, test success.


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

Hi,
I’m getting a compilation error in my PatternMatchingTestCase file for the

case \.isInteger:

Error: ‘isInteger’ is inaccessible due to ‘internal’ protection level.
Please advice.

Cheers!
Arjun

There are two options for fixing that, which I went over at 2:48 in Episode 4. Let me know if using one of those does not work for you!

1 Like

Thanks for the pointers. Found them:

  1. @testable import
  2. public extension

:grinning:

1 Like