How would you test the word count program? What kinds of input are most likely to uncover bugs if there are any?
To test the Word Line and Character counter program would require 3 types of input
-
Valid input - words, spaces or tabs and lines to see if the program correctly counts them
-
Conditional input - consisting enirely of new lines, tabs, spaces or empty
-
Invalid input - without EOF