[Mono-list] Need more corlib tests

Nick Drochak ndrochak@gol.com
12 Sep 2002 00:30:52 +0900


All,

Good news on the testing front!  Out of 617 tests that run against
corlib, only 9 are failing.  As lupus pointed out, that means we need
more tests so we can find more bugs :)

Special thanks to Gonzalo who can fix bugs in the class libs faster than
I can explain the problem on IRC.  Thanks a bunch Gonzalo!

For you newcomers to mono (or lurkers), unit tests are an excellent way
to contribute.  They are relatively easy to write, you learn things in
small digestable bits, and they help the project emmensely.  The
www.go-mono.com web site has instructions on how to get started. Post
your questions here if you need more help.

Here is the output from NUnit today on my RH 7.2 box (note that I am
using gcc 2.96):

There were 9 failures:
1) TestToString(MonoTests.System.DateTimeTest) "C26 expected:<+0> but
was:<0>"
2) TestNumberNegativePattern(MonoTests.System.DecimalTest)
"NumberNegativePattern #0 expected:<(1__2__34##8977)> but
was:<(1__2__34##8976)>"
3) TestDiv(MonoTests.System.DecimalTest2) "*** Div: result mismatch for
d1=79228162514264337593543950335 i=6 d2=10 j=4
d3=7922816251426433759354395033.5 d3b=7922816251426433759354395034
Ist:7922816251426433759354395033.5  Soll:7922816251426433759354395034 
delta=-0.5 == False"
4) TestFormat_Args(MonoTests.System.EnumTest) "decimal format wrong
expected:<3> but was:<Test>"
5) TestCtors(MonoTests.System.TimeZoneTest) "A01 expected:<CET> but
was:<>"
6)
TestProperties(MonoTests.System.Security.Cryptography.SymmetricAlgorithmTest) "Properties (1)"
7)
TestProperties(MonoTests.System.Security.Cryptography.AsymmetricAlgorithmTest) "Properties (1)"
8) TestBaseStream(MonoTests.System.IO.StreamReaderTest) "Unexpected
exception thrown: System.IO.IOException: MemoryStream already closed
in <0x0006f> 00 System.IO.MemoryStream:Close ()
in <0x000d0> 00 MonoTests.System.IO.StreamReaderTest:TestBaseStream ()
"
9) TestGetChars3(MonoTests.System.Text.ASCIIEncodingTest) " expected:<?>
but was:<>"

FAILURES!!!
Tests Run: 617, Failures: 9, Errors: 0

Patches gladly accepted, eh lupus?

Regards,
Nick D.