Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Midpoint tests taken from https://github.com/Turfjs/turf commit SHA
23d5cb91d77e0c1e2e903a2252f525797f1d0d09 (the current
master
commit as of writing)Spawned by test failure referenced in issue #3
Basically a direct port of the turf.js tests, with the addition of the existing lat/lng in range check the existing turf_dart test had.
Two of these tests still fail, but perhaps that points to an implementation bug in
midpoint
. It seemed starting with the turf.js tests would help identify if there was in fact a bug in the implementation.