Skip to content

Instantly share code, notes, and snippets.

@morganherlocker
Created February 6, 2015 16:20
Show Gist options
  • Select an option

  • Save morganherlocker/3de463d63c1be8c2e6cd to your computer and use it in GitHub Desktop.

Select an option

Save morganherlocker/3de463d63c1be8c2e6cd to your computer and use it in GitHub Desktop.
> turf-aggregate@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-aggregate
> tape test.js
TAP version 13
# aggregate
ok 1 should be equal
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
ok 6 should be equal
ok 7 should be equal
ok 8 should be equal
ok 9 should be equal
ok 10 should be equal
ok 11 (unnamed assert)
ok 12 (unnamed assert)
ok 13 (unnamed assert)
ok 14 (unnamed assert)
1..14
# tests 14
# pass 14
# ok
> turf-along@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-along
> node test.js
TAP version 13
# turf-along
ok 1 (unnamed assert)
ok 2 should be equal
ok 3 should be equal
ok 4 (unnamed assert)
ok 5 should be equal
ok 6 should be equal
ok 7 (unnamed assert)
ok 8 should be equal
ok 9 should be equal
ok 10 (unnamed assert)
ok 11 should be equal
ok 12 should be equal
ok 13 (unnamed assert)
ok 14 should be equal
ok 15 should be equal
ok 16 (unnamed assert)
ok 17 should be equal
ok 18 should be equal
ok 19 (unnamed assert)
ok 20 should be equal
ok 21 should be equal
ok 22 (unnamed assert)
ok 23 should be equal
ok 24 should be equal
ok 25 should be equal
ok 26 should be equal
ok 27 should be equal
1..27
# tests 27
# pass 27
# ok
> turf-area@1.1.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-area
> tape test.js
TAP version 13
# turf-area - polygon
ok 1 should be equal
# turf-area - polygon
ok 2 should be equal
# turf-area - linestring
ok 3 should be equal
# turf-area - featurecollection
ok 4 should be equal
# turf-area - featurecollection n > 1
ok 5 should be equal
# turf-area - feature
ok 6 should be equal
1..6
# tests 6
# pass 6
# ok
> turf-average@1.1.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-average
> tape test.js
TAP version 13
# average
ok 1 should be equal
ok 2 should be equal
ok 3 should be equal
1..3
# tests 3
# pass 3
# ok
> turf-bbox-polygon@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-bbox-polygon
> node test.js
TAP version 13
# bboxPolygon
ok 1 should take a bbox and return the equivalent polygon feature
ok 2 should be a Polygon geometry type
# bboxPolygon valid geojson
ok 3 should be valid geojson.
ok 4 should be equal
ok 5 should be equal
ok 6 should be equal
1..6
# tests 6
# pass 6
# ok
> turf-bearing@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-bearing
> tape test.js
TAP version 13
# bearing
ok 1 should return a bearing
1..1
# tests 1
# pass 1
# ok
> turf-bezier@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-bezier
> tape test.js
TAP version 13
# bezier
ok 1 (unnamed assert)
ok 2 (unnamed assert)
ok 3 should be equal
1..3
# tests 3
# pass 3
# ok
> turf-buffer@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-buffer
> tape test.js
TAP version 13
# buffer
ok 1 should buffer a point
ok 2 should buffer a line
ok 3 should buffer a polygon
ok 4 should buffer featurecollection
1..4
# tests 4
# pass 4
# ok
> turf-center@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-center
> node test.js
TAP version 13
# center
ok 1 should return the proper center for a FeatureCollection
ok 2 should be equivalent
1..2
# tests 2
# pass 2
# ok
> turf-centroid@1.0.2 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-centroid
> node test.js
TAP version 13
# center
ok 1 should return the proper center for a FeatureCollection
ok 2 should be equivalent
1..2
# tests 2
# pass 2
# ok
> turf-combine@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-combine
> tape test.js
TAP version 13
# combine
ok 1 should should combine two points into a MultiPoint
ok 2 should be equivalent
ok 3 should should combine two LineStrings into a MultiLineString
ok 4 should be equal
ok 5 should be equivalent
ok 6 should should combine two Polygons into a MultiPolygon
ok 7 should be equal
ok 8 should be equivalent
1..8
# tests 8
# pass 8
# ok
> turf-concave@1.0.2 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-concave
> tape test/*.js
TAP version 13
# concave
ok 1 requires maxEdge
ok 2 (unnamed assert)
ok 3 should be equal
not ok 4 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-concave/test/fixtures/in/concaveIn2.geojson
---
operator: deepEqual
expected:
{ geometry: { coordinates: [ [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ], [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ], [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ] ], type: 'MultiPolygon' }, properties: { a: null, b: null, c: null }, type: 'Feature' }
actual:
{ geometry: { coordinates: [ [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ], [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ], [ [ [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ], [ ..., ... ] ] ] ], type: 'MultiPolygon' }, properties: { a: undefined, b: undefined, c: undefined }, type: 'Feature' }
at: Test.<anonymous> (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-concave/test/concave.js:9:51)
...
1..4
# tests 4
# pass 3
# fail 1
> turf-convex@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-convex
> tape test/*.js
TAP version 13
# convex hull
ok 1 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-convex/test/fixtures/in/elevation1.geojson
ok 2 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-convex/test/fixtures/in/elevation2.geojson
ok 3 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-convex/test/fixtures/in/elevation3.geojson
1..3
# tests 3
# pass 3
# ok
> turf-count@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-count
> tape test.js
TAP version 13
# count
ok 1 should be equal
ok 2 should be equal
ok 3 should be equal
1..3
# tests 3
# pass 3
# ok
> turf-destination@1.2.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-destination
> tape test.js
TAP version 13
# destination
ok 1 should return a point
1..1
# tests 1
# pass 1
# ok
> turf-deviation@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-deviation
> tape test.js
TAP version 13
# deviation
ok 1 should be equal
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-distance@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-distance
> tape test.js
TAP version 13
# distance
ok 1 miles
ok 2 kilometers
ok 3 radians
ok 4 degrees
ok 5 default=kilometers
ok 6 unknown option given to units
1..6
# tests 6
# pass 6
# ok
> turf-envelope@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-envelope
> node test.js
TAP version 13
# envelope
ok 1 should return a polygon that represents the bbox around a feature or feature collection
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-erase@1.3.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase
> tape test/*.js
TAP version 13
# erase
ok 1 does not mutate data
ok 2 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect1.geojson
ok 3 does not mutate data
ok 4 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect2.geojson
ok 5 does not mutate data
ok 6 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedFC.geojson
ok 7 does not mutate data
ok 8 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedHole.geojson
# erase -- geometries
ok 9 does not mutate data
ok 10 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect1.geojson
ok 11 does not mutate data
ok 12 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect2.geojson
ok 13 does not mutate data
ok 14 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedFC.geojson
ok 15 does not mutate data
ok 16 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedHole.geojson
# erase -- geometries
ok 17 does not mutate data
ok 18 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect1.geojson
ok 19 does not mutate data
ok 20 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/Intersect2.geojson
ok 21 does not mutate data
ok 22 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedFC.geojson
ok 23 does not mutate data
ok 24 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-erase/test/fixtures/in/erasedHole.geojson
# erase -- empty set
ok 25 should be equivalent
ok 26 (unnamed assert)
1..26
# tests 26
# pass 26
# ok
> turf-explode@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-explode
> node test.js
TAP version 13
# explode
ok 1 should take a feature or feature collection and return all vertices
ok 2 should be equivalent
ok 3 explode a single point
ok 4 explode a single point in a featurecollection
ok 5 explode a polygon
ok 6 explode a linestring
ok 7 should throw
1..7
# tests 7
# pass 7
# ok
> turf-extent@1.0.3 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-extent
> node test.js
TAP version 13
# extent
ok 1 FeatureCollection
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
ok 6 Point
ok 7 should be equal
ok 8 should be equal
ok 9 should be equal
ok 10 should be equal
ok 11 Line
ok 12 should be equal
ok 13 should be equal
ok 14 should be equal
ok 15 should be equal
ok 16 Polygon
ok 17 should be equal
ok 18 should be equal
ok 19 should be equal
ok 20 should be equal
ok 21 MultiLineString
ok 22 should be equal
ok 23 should be equal
ok 24 should be equal
ok 25 should be equal
ok 26 MultiPolygon
ok 27 should be equal
ok 28 should be equal
ok 29 should be equal
ok 30 should be equal
ok 31 unknown geometry type error
1..31
# tests 31
# pass 31
# ok
> turf-featurecollection@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-featurecollection
> tape test.js
TAP version 13
# featureCollection
ok 1 (unnamed assert)
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
ok 6 should be equal
ok 7 should be equal
1..7
# tests 7
# pass 7
# ok
> turf-filter@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-filter
> node test.js
TAP version 13
# remove
ok 1 should filter all but 1 feature
ok 2 feature team property should be Nationals
1..2
# tests 2
# pass 2
# ok
> turf-flip@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip
> tape test.js
TAP version 13
# flip
ok 1 should be equal
ok 2 should be equal
ok 3 does not mutate original
ok 4 does not mutate original
ok 5 should flip a point coordinate
ok 6 should be equal
ok 7 should be equal
ok 8 should flip the x and ys of a linestring
ok 9 should be equal
ok 10 should be equal
ok 11 should be equal
ok 12 should be equal
not ok 13 Error: Each LinearRing of a Polygon must have 4 or more Positions.
---
operator: error
expected:
undefined
actual:
[Error: Each LinearRing of a Polygon must have 4 or more Positions.]
stack:
Error: Each LinearRing of a Polygon must have 4 or more Positions.
at module.exports (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/node_modules/turf-polygon/index.js:30:15)
at Test.<anonymous> (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/test.js:37:14)
at Test.bound [as _cb] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/node_modules/tape/lib/test.js:60:32)
at Test.run (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/node_modules/tape/lib/test.js:74:14)
at Test.bound [as run] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/node_modules/tape/lib/test.js:60:32)
at Object.next [as _onImmediate] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-flip/node_modules/tape/lib/results.js:66:15)
at processImmediate [as _immediateCallback] (timers.js:345:15)
...
1..13
# tests 13
# pass 12
# fail 1
> turf-grid@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-grid
> tape test.js
TAP version 13
# grid
ok 1 should create a 10x10 grid as a Point FeatureCollection
ok 2 should be equal
ok 3 should be equal
ok 4 should work properly with a negative start value
ok 5 should be equal
ok 6 should be equal
1..6
# tests 6
# pass 6
# ok
> turf-hex@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-hex
> tape test.js
TAP version 13
# hex
ok 1 should create a hexgrid as a Polygon FeatureCollection
ok 2 should be equal
ok 3 should be equal
ok 4 should create a hexgrid as a Polygon FeatureCollection
ok 5 should be equal
ok 6 should be equal
ok 7 should create a hexgrid as a Polygon FeatureCollection
ok 8 should be equal
ok 9 should be equal
1..9
# tests 9
# pass 9
# ok
> turf-inside@1.1.3 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-inside
> tape test.js
TAP version 13
# featureCollection
ok 1 point inside simple polygon
ok 2 point outside simple polygon
ok 3 point inside concave polygon
ok 4 point outside concave polygon
# poly with hole
ok 5 (unnamed assert)
ok 6 (unnamed assert)
ok 7 (unnamed assert)
# multipolygon with hole
ok 8 (unnamed assert)
ok 9 (unnamed assert)
ok 10 (unnamed assert)
ok 11 (unnamed assert)
ok 12 (unnamed assert)
1..12
# tests 12
# pass 12
# ok
> turf-intersect@1.3.2 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-intersect
> node test/test.js
TAP version 13
# intersect -- features
> turf-isobands@1.0.3 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-isobands
> tape test.js
TAP version 13
# isobands
ok 1 should take a set of points with z values and output a set of filled contour polygons
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-isolines@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-isolines
> tape test.js
TAP version 13
# isolines
ok 1 should take a set of points with z values and output a set of contour lines
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-jenks@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-jenks
> tape test.js
TAP version 13
# jenks
ok 1 should take a set of points and an array of percentiles and return a list of jenks breaks
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-kinks@1.3.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-kinks
> node test.js
TAP version 13
# kinks
ok 1 get self intersection from hourglass polygon
ok 2 should be equal
ok 3 get self intersection from triple intersecting polygon
ok 4 should be equal
# kinks
ok 5 get self intersection from hourglass polygon feature
ok 6 should be equal
1..6
# tests 6
# pass 6
# ok
> turf-line-distance@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-line-distance
> node test.js
TAP version 13
# turf-line-distance
ok 1 should be equal
ok 2 (unnamed assert)
1..2
# tests 2
# pass 2
# ok
> turf-line-slice@1.3.3 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-line-slice
> node test.js
TAP version 13
# turf-line-slice -- line1
# turf-line-slice -- line2
# turf-line-slice -- route1
# turf-line-slice -- route2
1..0
# tests 0
# pass 0
# ok
> turf-linestring@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-linestring
> tape test.js
TAP version 13
# lineString
ok 1 creates a linestring
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 error on no coordinates
ok 6 no properties case
1..6
# tests 6
# pass 6
# ok
> turf-max@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-max
> tape test.js
TAP version 13
# max
> turf-median@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-median
> tape test.js
TAP version 13
# median
ok 1 should be equal
ok 2 should be equal
ok 3 should be equal
1..3
# tests 3
# pass 3
# ok
> turf-merge@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-merge
> tape test/*.js
TAP version 13
# merge
ok 1 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-merge/test/fixtures/in/countries_simp.geojson
ok 2 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-merge/test/fixtures/in/mergeIn.geojson
ok 3 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-merge/test/fixtures/in/mergeIn2.geojson
1..3
# tests 3
# pass 3
# ok
> turf-midpoint@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-midpoint
> node test.js
TAP version 13
# midpoint
ok 1 should return the halfway point of a horizontal line starting off 0,0
ok 2 should return the halfway point of a vertical line starting off 0,0
ok 3 should return the halfway point of a diagonal line starting off 1,1
1..3
# tests 3
# pass 3
# ok
> turf-min@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-min
> tape test.js
TAP version 13
# min
> turf-nearest@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-nearest
> node test.js
TAP version 13
# distance
ok 1 should return a point
ok 2 should be a point
ok 3 lon -75.33
ok 4 lat 39.44
1..4
# tests 4
# pass 4
# ok
> turf-planepoint@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-planepoint
> tape test.js
TAP version 13
# planepoint
ok 1 should return the z value of a point on a plane
1..1
# tests 1
# pass 1
# ok
> turf-point@2.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-point
> tape test.js
TAP version 13
# point
ok 1 (unnamed assert)
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 numbers required
ok 6 no props becomes {}
1..6
# tests 6
# pass 6
# ok
> turf-point-on-line@1.0.1 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-point-on-line
> node test.js
TAP version 13
# turf-point-on-line -- line1
ok 1 should be equal
# turf-point-on-line -- line2
ok 2 should be equal
# turf-point-on-line -- route1
ok 3 should be equal
# turf-point-on-line -- route2
ok 4 should be equal
1..4
# tests 4
# pass 4
# ok
> turf-point-on-surface@1.1.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-point-on-surface
> node test.js
TAP version 13
# point-on-surface -- closest vertex on polygons
ok 1 centroid returned
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
# point-on-surface -- centroid on polygon surface
ok 6 centroid returned
ok 7 should be equal
ok 8 should be equal
ok 9 should be equal
ok 10 should be equal
ok 11 (unnamed assert)
# point-on-surface -- closest vertex on lines
ok 12 centroid returned
ok 13 should be equal
ok 14 should be equal
ok 15 should be equal
ok 16 should be equal
# point-on-surface -- closest vertex on multilinestring
ok 17 centroid returned
ok 18 should be equal
ok 19 should be equal
ok 20 should be equal
ok 21 should be equal
# point-on-surface -- multipolygon
ok 22 centroid returned
ok 23 should be equal
ok 24 should be equal
ok 25 should be equal
ok 26 should be equal
# point-on-surface -- multipoint
ok 27 centroid returned
ok 28 should be equal
ok 29 should be equal
ok 30 should be equal
ok 31 should be equal
1..31
# tests 31
# pass 31
# ok
> turf-polygon@1.0.2 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-polygon
> tape test.js
TAP version 13
# polygon
ok 1 (unnamed assert)
ok 2 should be equal
ok 3 should be equal
ok 4 should be equal
ok 5 should be equal
ok 6 should be equal
ok 7 invalid ring - not wrapped
ok 8 invalid ring - too few positions
ok 9 should be equivalent
1..9
# tests 9
# pass 9
# ok
> turf-quantile@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-quantile
> tape test.js
TAP version 13
# quantile
ok 1 should take a set of points and an array of percentiles and return a list of quantile breaks
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-random@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-random
> tape test.js
TAP version 13
# random(points)
ok 1 is a featurecollection
ok 2 right number of features
ok 3 feature type correct
# random(polygons)
ok 4 is a featurecollection
ok 5 right number of features
ok 6 feature type correct
# random(polygons, 10)
ok 7 is a featurecollection
ok 8 right number of features
ok 9 feature type correct
# random(polygons, 1, {num_vertices})
ok 10 is a featurecollection
ok 11 right number of features
ok 12 num vertices
# random(points, 10, {bbox})
ok 13 is a featurecollection
ok 14 right number of features
ok 15 feature type correct
ok 16 feature type correct
1..16
# tests 16
# pass 16
# ok
> turf-reclass@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-reclass
> tape test.js
TAP version 13
# reclass
ok 1 should take a feature collection and an array of translations and return a new featurecollection reclassed
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-remove@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-remove
> node test.js
TAP version 13
# remove
ok 1 should leave 3 features
ok 2 (unnamed assert)
ok 3 (unnamed assert)
ok 4 (unnamed assert)
1..4
# tests 4
# pass 4
# ok
> turf-sample@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sample
> node test
TAP version 13
# remove
ok 1 should sample 4 features
1..1
# tests 1
# pass 1
# ok
> turf-simplify@1.0.2 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-simplify
> tape test/*.js
TAP version 13
# simplify -- line
ok 1 (unnamed assert)
ok 2 should be equal
ok 3 should be equal
# simplify -- polygon
ok 4 should be equal
ok 5 should be equal
# simplify -- argentina
ok 6 should be equal
ok 7 should be equal
1..7
# tests 7
# pass 7
# ok
> turf-size@1.1.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-size
> node test.js
TAP version 13
# size
ok 1 should double the size of a bbox at 0,0,10,10
ok 2 should do nothing to the size of a bbox at 0,0,4,4
ok 3 should double the size of a bbox at 0,0,4,4
ok 4 should shrink a bbox by 50% at 0,0,4,4
ok 5 should double the size of a bbox at -10,-10
ok 6 should expand the size of a bbox by 50% at 0,0,10,10
ok 7 should shrink a bbox by 50%
1..7
# tests 7
# pass 7
# ok
> turf-square@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-square
> node test.js
TAP version 13
# square
ok 1 should be equivalent
ok 2 should be equivalent
1..2
# tests 2
# pass 2
# ok
> turf-sum@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum
> tape test.js
TAP version 13
# sum
not ok 1 Error: First and last Position are not equivalent.
---
operator: error
expected: undefined
actual: [Error: First and last Position are not equivalent.]
stack:
Error: First and last Position are not equivalent.
at module.exports (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/node_modules/turf-polygon/index.js:33:15)
at Test.<anonymous> (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/test.js:8:15)
at Test.bound [as _cb] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/node_modules/tape/lib/test.js:60:32)
at Test.run (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/node_modules/tape/lib/test.js:74:14)
at Test.bound [as run] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/node_modules/tape/lib/test.js:60:32)
at Object.next [as _onImmediate] (/Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-sum/node_modules/tape/lib/results.js:66:15)
at processImmediate [as _immediateCallback] (timers.js:345:15)
...
1..1
# tests 1
# pass 0
# fail 1
> turf-tag@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-tag
> node test.js
TAP version 13
# tag
ok 1 features should be ok
ok 2 tagged points should have the same length as the input points
ok 3 polygon 4 should have tagged 6 points
1..3
# tests 3
# pass 3
# ok
> turf-tin@1.0.5 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-tin
> tape test.js
TAP version 13
# tin
ok 1 should be equal
ok 2 should be equal
1..2
# tests 2
# pass 2
# ok
> turf-union@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-union
> tape test/*.js
TAP version 13
# union
ok 1 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-union/test/fixtures/in/Intersect1.geojson
ok 2 /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-union/test/fixtures/in/Intersect2.geojson
1..2
# tests 2
# pass 2
# ok
> turf-variance@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-variance
> tape test.js
TAP version 13
# variance
> turf-within@1.0.0 test /Users/morgan/Documents/projects/turfjs/turf/turf_modules/turf-within
> tape test.js
TAP version 13
# within
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment