Requiring the user to enter the date represented by the date. Suppose date defined in January 1990 - December 2049, and the date specified by the six numeric characters, the first 4 bits indicate, after the two months represented. Equivalence partitioning method Active test cases to test the program "check date."
Date Type:
①6 non-numeric characters are numeric characters ② ③ ④ less than 6 6 numeric characters numeric characters
Age range:
⑤ ⑥ less than 1990, 2049, 1990 ~ 2049 is greater than the intermediate ⑦
Month range:
⑧ equal 00⑨ between 1 ~ 12 ⑩ greater than 12
Covering the effective equivalence class ①, ⑥, ⑨
Test Case | The number of input 6 | Cover the effective equivalence class number |
text1 | 20121111 | ①,⑥,⑨ |
text2 | 20131112 | ①,⑥,⑨ |
Covered invalid equivalence class ②, ③, ④, ⑤, ⑦, ⑧, ⑩
Test Case | Enter the number six | No equivalence class override void |
text1 | 15501010 | ⑤ |
text2 | 30211212 | ⑦ |