Skip to content

Commit 990442c

Browse files
committed
Removed test error by rounding coordinates to 9 digits
1 parent 29038f7 commit 990442c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def test_geojson
77
end
88

99
def test_coordinates
10-
[[[135.220734222412,34.7056906000311],[135.302273376465,34.6990600142143],[135.300041778564,34.6709699843709],[135.252834899902,34.6760523038894],[135.194212539673,34.6766840435102],[135.220734222412,34.7056906000311]]]
10+
[[[135.220734222,34.705690600],[135.302273376,34.699060014],[135.300041779,34.670969984],[135.252834900,34.676052304],[135.194212540,34.676684044],[135.220734222,34.705690600]]]
1111
end
1212

1313
def point_geojson(coordinates)

test/unit/issue_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class IssueTest < GttTest
3434
assert_equal 2, center.size
3535
assert geom = d[:geojson]['geometry']
3636
assert coords = geom['coordinates']
37-
assert_equal 15052703.2783315, coords.flatten.first
37+
assert_equal 15052703.278285623, coords.flatten.first
3838
end
3939

4040
test 'should render properties in as_geojson' do

0 commit comments

Comments
 (0)