Example Tests

These are examples that you can view and run from this site right now.

These are examples that are still in development.


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()  
SimpleExample.html true 6 0 0 0  
arithmetic.html false 40 8 0 1 Differences in arithmetic models - was 37, 10, 0, 2
CalculatorExample.html true 75 8 0 1 floating divide by 0 - was 75, 9, 0, 0
MusicExample.html true 95 0 0 0  
MusicExampleWithErrors.html true 54 10 0 0  
AllCombinations.html true 80 6 0 0  
AllPairs.html true 33 3 0 0 Major algorithm change - was 45, 3, 0, 0

We are only testing that we get the expected counts of right and wrong. There are 28 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

See the fixture: http:Release/Source/eg/ExampleTests.java


Last edited April 20, 2003