Test cases for Line2D class
David Gilbert
david.gilbert@object-refinery.com
Mon Aug 2 12:42:00 GMT 2004
First contribution from me...
I've attached some test cases for the Line2D class - all checks pass for
me on JDK 1.4.2_03 and JDK 1.3.1_11 (on SuSE Linux), 10 checks fail
using Classpath (fairly recent copy from CVS). The failures I think
were pointed out earlier by Sven de Marothy on this list). Sven's test
case is included in the attachments since I've added a couple of checks
to it - also his version is not yet in CVS.
Also attached is a patch that I think fixes the linesIntersect() method
(can't be 100% sure since I'm having trouble building Classpath right at
the moment, but I'll confirm it as soon as I can - the code passed my
standalone tests OK).
Regards,
Dave Gilbert
P.S. I have completed the FSF paperwork for contributing to Classpath,
is this a requirement for Mauve also?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clone.java
Type: text/x-java
Size: 1663 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contains.java
Type: text/x-java
Size: 1841 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: equals.java
Type: text/x-java
Size: 1353 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getBounds.java
Type: text/x-java
Size: 1556 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getP1.java
Type: text/x-java
Size: 1289 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getP2.java
Type: text/x-java
Size: 1287 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getPathIterator.java
Type: text/x-java
Size: 1876 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intersects.java
Type: text/x-java
Size: 3217 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intersectsLine.java
Type: text/x-java
Size: 2039 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linesIntersect.java
Type: text/x-java
Size: 2181 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptLineDist.java
Type: text/x-java
Size: 2868 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptLineDistSq.java
Type: text/x-java
Size: 2920 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptSegDist.java
Type: text/x-java
Size: 2983 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ptSegDistSq.java
Type: text/x-java
Size: 2959 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relativeCCW.java
Type: text/x-java
Size: 2963 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setLine.java
Type: text/x-java
Size: 3194 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Line2D-patch.txt
Type: text/x-patch
Size: 5123 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040802/741a2e3a/attachment-0016.bin>
More information about the Mauve-patches
mailing list