Hi Nathan,

"Nathan Beyer" <[EMAIL PROTECTED]> wrote on 01/05/2006 10:55:22 PM:

> The version of 'junit.jar' in the 'tools' folder seems to be rather old. 
Is
> there any reason that it couldn't be updated to 3.8.1?

It's been 2 or 3 years since anyone did significant work on the tests so 
that's probably why it has become so out of date. I'll see that it gets 
updated.

> If it can be updated, then there is a small change that needs to be made 
to
> one of the tests. The following patch should handle that though.

Right. This would get rid of a compiler warning since assert is a keyword 
in J2SE 1.4 and above.

> <patch>
> Index: tests/dom/range/TestCompare.java
> ===================================================================
> -- tests/dom/range/TestCompare.java   (revision 366408)
> +++ tests/dom/range/TestCompare.java   (working copy)
> @@ -171,7 +171,7 @@
>             for( int j=0; j<ranges.length; ++j )
>             {
>                 int result = ranges[i].compareBoundaryPoints( how, 
ranges[j]
> );
>                assert( "Compare returned the wrong value i="+i+" j="+j + 
"
> result="+result, result == results[i][j] );
> +                assertTrue( "Compare returned the wrong value i="+i+" 
j="+j
> + " result="+result, result == results[i][j] );
>             }
>         }
>     }
> 
> </patch>
> 
> -Nathan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to