Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 476 Bytes

exercise1-11.md

File metadata and controls

14 lines (8 loc) · 476 Bytes

Exercise 1-11

How would you test the word count program? What kinds of input are most likely to uncover bugs if there are any?

Answer

To test the Word Line and Character counter program would require 3 types of input

  1. Valid input - words, spaces or tabs and lines to see if the program correctly counts them

  2. Conditional input - consisting enirely of new lines, tabs, spaces or empty

  3. Invalid input - without EOF

Back to Main