Chapter 5: Decisions
Boolean
- primitive type - boolean
- legal values - true, false
- boolean operators - && (and), || (or), ! (not)
- boolean expressions
- boolean variables
- boolean (predicate) methods
Testing
- Black box testing
- White box testing
Designing Test Cases
- Coverage - test all parts of code
- Boundary Cases - use boundary values
- Known Answers - use test cases whose answers can be verified
- Prepare Test Cases Before Writing Program
Lecture Code