From 7508d7771e948a34f6fba291568fbe9c07b568e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Harrtell?= Date: Fri, 3 May 2024 15:50:56 +0200 Subject: [PATCH] Testcase for 516 and non working fix --- src/java/util/PriorityQueue.js | 2 +- test/manual/issues/516.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/manual/issues/516.js diff --git a/src/java/util/PriorityQueue.js b/src/java/util/PriorityQueue.js index 97c06a77..0a18b75d 100644 --- a/src/java/util/PriorityQueue.js +++ b/src/java/util/PriorityQueue.js @@ -1,4 +1,4 @@ -import ArrayList from '../../../../java/util/ArrayList.js' +import ArrayList from './ArrayList.js' export default class PriorityQueue { constructor() { PriorityQueue.constructor_.apply(this, arguments) diff --git a/test/manual/issues/516.js b/test/manual/issues/516.js new file mode 100644 index 00000000..176bef22 --- /dev/null +++ b/test/manual/issues/516.js @@ -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) + }) +})