previous |
start |
next
Debugging countSyllables (again)
- Break in the beginning of countSyllables
- Single-step through loop
- First iteration ('r'): skips test for vowel
- Second iteration ('e'): passes test, increments
count
- Third iteration ('g'): skips test
- Fourth iteration ('a'): passes test, but doesn't
increment count
- insideVowelGroup was never reset to
false
- Fix and retest: All test cases pass
- Is the program now bug-free? The debugger can't answer
that.
previous |
start |
next