X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..650adc10b2fbcbaa9a9fb1827bc3abe1a58fe051:/test/lib/bounding_box_test.rb diff --git a/test/lib/bounding_box_test.rb b/test/lib/bounding_box_test.rb index 4e962aedf..834d217cb 100644 --- a/test/lib/bounding_box_test.rb +++ b/test/lib/bounding_box_test.rb @@ -209,7 +209,7 @@ class BoundingBoxTest < ActiveSupport::TestCase end end - def test_bbox_area + def test_good_bbox_area @good_bbox.each do |string| bbox = BoundingBox.from_s(string) array = string.split(",") @@ -217,6 +217,10 @@ class BoundingBoxTest < ActiveSupport::TestCase end end + def test_nil_bbox_area + assert_equal 0, @bbox_from_nils.area + end + def test_complete assert !@bbox_from_nils.complete?, "should contain a nil" assert @bbox_from_string.complete?, "should not contain a nil"