To finalize our condition coverage, we must force bug(a) to be false. We again examine our
bug() information, which informs us that the bug method should return a false value if fed
any integer greater than 1. So we create Test Case 5, foo(3, 2, 1, 1, 1), expected return value
“division by error”. The condition coverage thus far is shown in Table 15.3.
ที่ครอบคลุมเงื่อนไขของเรา เราต้องบังคับบั๊ก ( ) เป็นเท็จ เราอีกครั้งตรวจสอบข้อมูล bug() ของเรา
ซึ่งแจ้งเราว่าแมลงวิธีควรคืนค่า false ถ้าเลี้ยง
มีจำนวนเต็มมากกว่า 1 ดังนั้นเราสามารถสร้างกรณีทดสอบ 5 , ฟู ( 3 , 2 , 1 , 1 , 1 ) ,
" คาดมูลค่าผลตอบแทนกองโดยข้อผิดพลาด " เงื่อนไขความคุ้มครองป่านนี้แสดงดังตารางที่ 15.3 .
การแปล กรุณารอสักครู่..
