Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 260873 Details for
Bug 491403
Enchancement for Point (getDifference)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case for Point.getDifference()
point-getdifference-test.patch (text/plain), 1018 bytes, created by
Colin Sharples
on 2016-04-11 17:34:25 EDT
(
hide
)
Description:
Test case for Point.getDifference()
Filename:
MIME Type:
Creator:
Colin Sharples
Created:
2016-04-11 17:34:25 EDT
Size:
1018 bytes
patch
obsolete
>diff --git a/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/PointTests.java b/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/PointTests.java >index db0a51f..2a1a0dd 100644 >--- a/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/PointTests.java >+++ b/org.eclipse.gef4.geometry.tests/src/org/eclipse/gef4/geometry/tests/PointTests.java >@@ -431,6 +431,19 @@ > } > > @Test >+ public void test_getDifference() throws Exception { >+ Point p1 = new Point(100, 100); >+ Point p2 = new Point(50, 70); >+ assertEquals(new Point(-50, -30), p1.getDifference(p2)); >+ p2 = new Point(150, 70); >+ assertEquals(new Point(50, -30), p1.getDifference(p2)); >+ p2 = new Point(50, 170); >+ assertEquals(new Point(-50, 70), p1.getDifference(p2)); >+ p2 = new Point(150, 170); >+ assertEquals(new Point(50, 70), p1.getDifference(p2)); >+ } >+ >+ @Test > public void test_getDistance() { > Point p = new Point(4, 3); > assertTrue(PrecisionUtils.equal(p.getDistance(new Point()), 5));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
nyssen
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 491403
:
260833
| 260873