Skip to content

Commit

Permalink
tippecanoe: cleanup test.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Dec 9, 2014
1 parent 6883bad commit fc45c20
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Formula/tippecanoe.rb
Expand Up @@ -20,14 +20,12 @@ def install
end

test do
path = testpath/"test.geojson"
outputPath = testpath/"test.mbtiles"
path.write <<-EOS
path = testpath/"test.json"
path.write <<-EOS.undent
{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[0,0]}}
EOS
puts "#{bin}/tippecanoe #{path} -o #{outputPath}"
output = `#{bin}/tippecanoe < #{path} -o #{outputPath}`.strip
assert_equal "bbox: 80000000 80000000 80000000 80000000\nusing layer name test", output
output = `#{bin}/tippecanoe -o test.mbtiles #{path}`.strip
assert_equal 0, $?.exitstatus
assert_equal "bbox: 80000000 80000000 80000000 80000000\nusing layer name test", output
end
end

0 comments on commit fc45c20

Please sign in to comment.