diff options
| author | Charles Karney <charles@karney.com> | 2018-02-23 11:46:47 -0500 |
|---|---|---|
| committer | Charles Karney <charles@karney.com> | 2018-02-23 11:46:47 -0500 |
| commit | d83971aa739e421c8d73e08189f274dc0eb29f3d (patch) | |
| tree | 59edb8c8db259692ee298262d87ebbe99a2c59da /src/geodesic.c | |
| parent | 6d5e19110046ea2aefc645f40dfce4b3dadb8109 (diff) | |
| download | PROJ-d83971aa739e421c8d73e08189f274dc0eb29f3d.tar.gz PROJ-d83971aa739e421c8d73e08189f274dc0eb29f3d.zip | |
Add tests to improve the code coverage.
Now all of geodesic.c is covered except for 3 lines (and 2 of these are
intentionally dead code).
This corresponds to tag v1.49.2-c in the GeographicLib code base.
While testing polygons which encircle the globe multiple times, I
uncovered a problem where the range of the area was not reduced to the
allowed range (either [0, area0) or (-area0/2, area0/2]) correctly.
Since the documentation explicity restricted the calculation of polygon
areas to simple polygons, we'll defer fixing this for now. (However the
intention was always to handle the area "algebraically" so that, for
example, a "bowtie" has zero area. So I will plan on fixing this for
1.50.)
Update copyright dates + NEWS.
Diffstat (limited to 'src/geodesic.c')
| -rw-r--r-- | src/geodesic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geodesic.c b/src/geodesic.c index 6a383b72..23557b5c 100644 --- a/src/geodesic.c +++ b/src/geodesic.c @@ -18,7 +18,7 @@ * * See the comments in geodesic.h for documentation. * - * Copyright (c) Charles Karney (2012-2017) <charles@karney.com> and licensed + * Copyright (c) Charles Karney (2012-2018) <charles@karney.com> and licensed * under the MIT/X11 License. For more information, see * https://geographiclib.sourceforge.io/ */ |
