首页 > 试题广场 >

Please design the test cases b

[问答题]
Suppose the function is to calculate the sum of two positive rational numbers ( 有理数 ) and output the result in the simplest form of a rational number as “integer_part numerator/denominator”.  Please design the test cases by applying equivalence partitioning and boundary value analysis technique.

at least 4 cases must be designed

(1) result has integer part

(2) result has no integer part

(3) numerator and denominator has common factors and must be simplified

(4) result is an integer

(5) let numerator and denominator meet the boundary of long int

发表于 2017-04-30 16:04:04 回复(0)