Skip to content

Commit

Permalink
Tests housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornharrtell committed Feb 25, 2016
1 parent e313847 commit f5f8268
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions test/spec/issues/232.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import WKTReader from 'org/locationtech/jts/io/WKTReader'
describe('MultiPoint does not support getEnvelopeInternal (#232)', function () {
var reader = new WKTReader()

it('MultiPoint getEnvelopeInternal should work', function () {
it('getEnvelopeInternal should work', function () {
const mp = reader.read('MULTIPOINT ((10 10), (10 20), (20 20))')
const result = mp.getEnvelopeInternal()
const expected = new Envelope(10, 20, 10, 20)
expect(result.equals(expected)).to.be(true)
})

it('Evaluating if MultiPoint covers Polygon should work', function () {
it('test for covering Polygon should work', function () {
const p = reader.read('POLYGON((10 10, 100 10, 100 100, 10 100, 10 10))')
const mp = reader.read('MULTIPOINT ((10 10), (10 20), (20 20))')
expect(p.covers(mp)).to.be(true)
Expand Down
13 changes: 0 additions & 13 deletions test/spec/issues/234.js

This file was deleted.

13 changes: 13 additions & 0 deletions test/spec/issues/236.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import expect from 'expect.js'

import WKTReader from 'org/locationtech/jts/io/WKTReader'

describe('IsValid throws exception in some cases (#236)', function () {
var reader = new WKTReader()

it('isValid should not throw an exception for this Polygon', function () {
const p = reader.read('POLYGON((460901 -33906,3961797 -2530706,2293179 -4841460,599984 -3210077,460901 -33906))')
const valid = p.isValid()
expect(valid).to.be(true)
})
})

0 comments on commit f5f8268

Please sign in to comment.