Podcast
Questions and Answers
What is the purpose of the App?
What is the purpose of the App?
What is used to verify that the application writes the output it expects?
What is used to verify that the application writes the output it expects?
What is the purpose of Collaborator-Based Isolation?
What is the purpose of Collaborator-Based Isolation?
What is Output Tracking used for?
What is Output Tracking used for?
Signup and view all the answers
What is ndLine?
What is ndLine?
Signup and view all the answers
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.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Learn about testing a command line application that encodes a string using ROT-13. Explore the use of optional patterns such as 'Collaborator-Based Isolation' and 'Output Tracking' to verify the application's functionality. Understand the use of ndLine as a test double in the production code.