We use these examples for testing new implementations. Here is an example that runs the other examples. Click http:run.cgi to perform this test.
eg.ExampleTests | |||||
file | wiki | right() | wrong() | ignores() | exceptions() |
arithmetic.html | false | 37 | 10 | 0 | 2 |
CalculatorExample.html | true | 75 | 9 | 0 | 0 |
MusicExample.html | true | 95 | 0 | 0 | 0 |
MusicExampleWithErrors.html | true | 54 | 10 | 0 | 0 |
NetworkExample.html | true | 5 | 0 | 0 | 0 |
AllFiles.html [5] | true | 9 expected 8 actual | 3 expected 4 actual | 0 | 0 |
AllCombinations.html | true | 80 | 6 | 0 | 0 |
AllPairs.html | true | 45 | 3 | 0 | 0 |
We are only testing that we get the expected counts of right and wrong. There are twenty of these count comparisions above. But there are actually many more tests preformed. This fixture adds an extra line to the summary so that we can feel good even though LessonsLearned advises us not to base our confidence on test counts which are easily inflated.
fit.Summary | |
counts | 30 right, 2 wrong, 0 ignored, 0 exceptions |
counts run | 399 right, 42 wrong, 0 ignored, 2 exceptions |
input file | /Users/ward/Documents/Java/fit/Release/Documents/ExampleTests.html |
input update | Sun Apr 20 18:41:18 PDT 2003 |
output file | /Users/ward/Documents/Java/fit/Release/Reports/ExampleTests.html |
run date | Sun Apr 20 20:57:29 PDT 2003 |
run elapsed time | 0:06.46 |
See the fixture: http:Release/Source/eg/ExampleTests.java