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()
arithmetic.html false 37 expected
40 actual
10 expected
8 actual
0 2 expected
1 actual
CalculatorExample.html true 75 9 expected
8 actual
0 0 expected
1 actual
MusicExample.html true 95 expected
91 actual
0 expected
4 actual
0 0
MusicExampleWithErrors.html true 54 expected
40 actual
10 expected
61 actual
0 expected
120 actual
0
NetworkExample.html true 5 expected
4 actual
0 0 0 expected
3 actual
AllFiles.html true 9 expected
6 actual
3 expected
6 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 0 right, 14 wrong, 0 ignores, 0 exceptions
input file input/ExampleTests.html
input update Sat Apr 22 22:26:16 2006
output file output/ExampleTests.html
run date Wed May  3 18:10:54 2006
run elapsed time 0 wallclock secs ( 0.01 usr  0.02 sys +  0.00 cusr  0.01 csys =  0.03 CPU)

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


Last edited April 20, 2003