Code: Select all
if ((temperature < 0) or (temperature > 100)) {
alert ("DANGER");
if ((speed > 100) and (load <= 50)) {
speed = 50;
} else {
check = false;
}
Tham khảo thêm:
- 1. Ví dụ bao phủ Quyết định - Decision coverage
2. Ví dụ bao phủ Điều kiện - Condition coverage