-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testcase for 516 and non working fix
- Loading branch information
1 parent
9131e83
commit 7508d77
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import expect from 'expect.js' | ||
|
||
import WKTReader from '../../../src/org/locationtech/jts/io/WKTReader.js' | ||
import MaximumInscribedCircle from '../../../src/org/locationtech/jts/algorithm/construct/MaximumInscribedCircle.js' | ||
|
||
describe('Test (#516)', function() { | ||
it('MaximumInscribedCircle basic test', function() { | ||
const reader = new WKTReader() | ||
const input = 'POLYGON((10 10, 100 10, 100 100, 10 100, 10 10))' | ||
const p = reader.read(input) | ||
const result = MaximumInscribedCircle.getCenter(p, 1) | ||
expect(result).to.equal(false) | ||
}) | ||
}) |