Questions and Answers
What is the purpose of the App?
To encode a string using ROT-13
What is used to verify that the application writes the output it expects?
Tests
What is the purpose of Collaborator-Based Isolation?
To assert that the ROT-13 encoded output is written to the command line
What is Output Tracking used for?
Signup and view all the answers
What is ndLine?
Signup and view all the answers
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Study Notes
- App is a command line application that encodes a string using ROT-13 and outputs the result.
- Tests are used to verify that the application writes the output it expects.
- App uses an optional pattern called “Collaborator-Based Isolation” to assert that the ROT-13 encoded output is written to the command line.
- Tests also use Output Tracking to see what would have been written to stdout.
- ndLine is a test double. But it’s actually production code with an “off” switch and the ability to monitor its output.