5 Questions
0 Views
3.5 Stars

Testing ROT-13 Command Line Application

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.

1/5
Find out if you were right!
Create an account to continue playing and access all the benefits such as generating your own quizzes, flashcards and much more!
Quiz Team

Access to a Library of 520,000+ Quizzes & Flashcards

Explore diverse subjects like math, history, science, literature and more in our expanding catalog.

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?

<p>To see what would have been written to stdout</p> Signup and view all the answers

What is ndLine?

<p>A test double</p> Signup and view all the answers

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

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.

Trusted by students at

More Quizzes Like This

Use Quizgecko on...
Browser
Browser