??? 10/23/07 09:14 Modified: 10/23/07 09:16 Read: times |
#146059 - Unit test ! Responding to: ???'s previous message |
What I would like is for you to try your code on your spreadsheet.
Yep - a simple, but nonetheless valid unit test. Calculate the expected output in your spreadsheet (you might even include rounding/truncation if you're using integer or fixed point arithmetics in your program), and then check the output of your code against the output of your spreadsheet. If they differ, you've got a bug (either in your spreadsheet, or in your code). |