What do we mean by code? When testing the module that I'm thinking of here, we test specific methods and classes.
, ,
, , - . :
int getInvestvalue( int depositCents, double annualInterestRate, int years) {
}
? , . :
deposit 100, rate 5.0, years 1 : expected answer 105
deposit 100, rate 0, years 1 : expected answer 100
deposit 100, rate 10, years 0 : expected anwer 100
? ?
, , 1,000,000.50 100,000 , , - , - ?
: . , , , , :
- : , , , . 5%. . , , , - ...
- : . . - - , : , "" .
- : . . , yoiu , " ", .