Right-is the result correct?
That's right
B is all the boundary conditions correct?
Conformance (consistency): whether the value is consistent with the expected consistency
Ordering (sequential): whether the value is as it should be
is an ordered or unordered range (interval): Whether the value is between a reasonable minimum and a maximum value is
Reference (Dependency): Does the code refer to some external resources that are not within the control of the code itself?
Existence (Presence): Whether the value exists (non-null, not 0, medium in a set) can handle the elements of each element ; Each element is a int32 type
Cardinatity (cardinality): exactly enough value
Time (absolute or relative): Is everything happening in order? Is it at the right moment? Is it just in time? Is
Can I check the inverse association?
(For some methods, you can use a reverse logical relationship to validate them.) Examine a method that calculates the square root using the square of the result, and then test whether the result is close to the original data in order to check if a record is successfully inserted into the database, you can verify by querying this record. )
No
C-Can you cross-check the results with other means?
(There is more than one method for calculating a quantity.) You can use another method to cross-test the results of the original method. Use data from different components of the class itself for cross-checking. The Library Data system can be checked by borrowing several and the sum of the stock and must be equal to the amount of books that are hidden. )
No, because oil is an input method.
E-Can you force error conditions to occur?
Can, when an element exceeds 1000 or exceeds the range of Int32, an error occurs, such as
Does p meet performance requirements?
Can, because the problem is relatively single
Arithmetic's right-bicep test