mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Implement unit test for #1255
This appears to have been fixed in the meantime. Closes #1255
This commit is contained in:
parent
bba70907e7
commit
652574115c
1 changed files with 8 additions and 0 deletions
|
@ -400,3 +400,11 @@ test('#1409', function() {
|
|||
var circ2 = circ1.clone();
|
||||
testIntersections(circ1.getCrossings(circ2), []);
|
||||
});
|
||||
|
||||
test('#1255', function() {
|
||||
var c1 = new Curve([439.3824078319993,216.13903749801196],[-0.06618902689025684,-11.053567490673387],[-9.709467619869528,5.2831783801853],[455.0432856400729,189.60783460905492]);
|
||||
var c2 = new Curve([446.1268928788026,138.78016797936476],[-4.688929299417313,19.846766368483937],[-0.19057652660425625,-31.82627994291222],[439.3824078319993,216.13903749801196]);
|
||||
testIntersections(c1.getIntersections(c2), [
|
||||
{ point: { x: 439.38241, y: 216.13904 }, time: 0, crossing: false }
|
||||
]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue