<br><br><div class="gmail_quote">On Thu, May 6, 2010 at 11:03 AM, Mark Evenson <span dir="ltr"><<a href="mailto:evenson@panix.com" target="_blank">evenson@panix.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 5/6/10 3:44 PM, Alan Ruttenberg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I committed a sin on this one and worked around it and didn't record the<br>
specifics :( I'll be better next time.<br>
<br>
But what I wanted to point out (not very constructively - sorry) was<br>
that it would be nice if debug.assertTrue printed out what it tried to<br>
assert as a message, to the console, so that one could diagnose a little<br>
without having to find the line in the source code.<br>
</blockquote>
<br></div>
Since Java doesn't have a standard macro facility or a concept like eval, I can't think of an wasy way to output the tested assertion without repeating the string twice (which tends to lead to errors in my experience). There is often little context in the assertion code as to why the particular assertion needs to be true, so I'm not sure how helpful this would be.<br>
<br>
If you got an idea how to make this more meaningful, I'm willing to implement something better.<br></blockquote><div><br></div><div>My java buddy says use this facility:</div><div><a href="http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html">http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html</a></div>
<div><br></div><div>-Alan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font color="#888888">
<br>
<br>
-- <br></font><div><div></div><div>
"A screaming comes across the sky. It has happened before, but there<br>
is nothing to compare to it now."<br>
</div></div></blockquote></div><br>