* misleading output "PASS: Error: ..."
@ 2006-01-20 19:59 Edwin Steiner
2006-01-22 17:50 ` Mark Wielaard
0 siblings, 1 reply; 2+ messages in thread
From: Edwin Steiner @ 2006-01-20 19:59 UTC (permalink / raw)
To: mauve-discuss
Hallo!
During my work with tgolem I found many lines in the mauve output like
this:
PASS: gnu.testlet.java.lang.Byte.ByteTest: Error: test_Basics failed - 1 (number 1)
They are produced by such code:
harness.check(!( Byte.MIN_VALUE != -128 ),
"Error: test_Basics failed - 1" );
Would you accept patches turning this into
harness.check(!( Byte.MIN_VALUE != -128 ),
"test_Basics - 1" );
? (Only changing the string. Changing the double negation seems too
error prone for the many cases I found.)
BTW I already promised patches for a similar problem. Unfortunately I
had very little spare time recently. I hope this will get better now.
Cheers,
-Edwin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: misleading output "PASS: Error: ..."
2006-01-20 19:59 misleading output "PASS: Error: ..." Edwin Steiner
@ 2006-01-22 17:50 ` Mark Wielaard
0 siblings, 0 replies; 2+ messages in thread
From: Mark Wielaard @ 2006-01-22 17:50 UTC (permalink / raw)
To: Edwin Steiner; +Cc: mauve-discuss
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
Hi Edwin,
On Fri, 2006-01-20 at 20:59 +0100, Edwin Steiner wrote:
> During my work with tgolem I found many lines in the mauve output like
> this:
>
> PASS: gnu.testlet.java.lang.Byte.ByteTest: Error: test_Basics failed - 1 (number 1)
>
> They are produced by such code:
>
> harness.check(!( Byte.MIN_VALUE != -128 ),
> "Error: test_Basics failed - 1" );
>
> Would you accept patches turning this into
>
> harness.check(!( Byte.MIN_VALUE != -128 ),
> "test_Basics - 1" );
>
> ? (Only changing the string. Changing the double negation seems too
> error prone for the many cases I found.)
Yes please! I have found these message strings confusing myself in the
past. If you do decide to change the double negation then please rewrite
these as actual checks:
harness.check(Byte.MIN_VALUE, -128, "test_Basics - 1" );
That way one sees the expected value if the the test would ever fail.
But just changing the message strings would already be an improvement.
Cheers,
Mark
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-22 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20 19:59 misleading output "PASS: Error: ..." Edwin Steiner
2006-01-22 17:50 ` Mark Wielaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).