Skip to content

Commit

Permalink
Testcase for 516 and non working fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed May 3, 2024
1 parent 9131e83 commit 7508d77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/util/PriorityQueue.js
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
14 changes: 14 additions & 0 deletions test/manual/issues/516.js
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)
})
})

0 comments on commit 7508d77

Please sign in to comment.