Skip to content
Snippets Groups Projects
Commit 323e5451 authored by zhaknafein's avatar zhaknafein
Browse files

Fixed unused variable in test method

The startpoint variable wasn't used when calculating the endpoint.
parent 6aa011c2
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ class CalculationsTest < Test::Unit::TestCase
rheading = [*0..359].sample
rdistance = [*0..100].sample
startpoint = [45.0906, 7.6596]
endpoint = Geocoder::Calculations.endpoint([45.0906, 7.6596], rheading, rdistance)
endpoint = Geocoder::Calculations.endpoint(startpoint, rheading, rdistance)
assert_in_delta rdistance, Geocoder::Calculations.distance_between(startpoint, endpoint), 1E-5
assert_in_delta rheading, Geocoder::Calculations.bearing_between(startpoint, endpoint), 1E-2
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment