Arithmetic 2 unit Test
Through the study of the class, we understand the function and importance of unit test, and try to test the program of Arithmetic 2, and analyze the combination procedure of test cases in many groups.
Test Case 1:
The quantity and the number of printing methods are correct, the requirements for multipliers, negative numbers, remainder, brackets are also in line with expectations, and the initial results are correct.
Test Case 2:
The boundary conditions meet the requirements, the sub-values are within the required range and are not duplicated, and the multiplication negative remainder requirements are also expected.
Test Case 3:
Forcing an error condition that requires too many outputs and cannot be duplicated, all random numbers in the range of values are not met, but for multiplication, the remainder condition is different, resulting in different running results, exceeding the expected result (⊙o⊙).
Test Case 4:
The number of input requirements is empty, the input condition is wrong, some errors can be error, some programs error, need to improve, different from the expected.
Test Case 5:
The proof symbol arithmetic is random and does not repeat as expected.
Test Case 6:
The parentheses section is wrong, the program does not set the parentheses in the judgment, just a simple output does not work, the randomly generated operation does not include the parentheses operation, the same as expected, the parentheses to try multiple unsuccessful also affect other conditions, there is insufficient, the next correction.
Arithmetic 2 unit Test