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.h | |
| 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.h')
| -rw-r--r-- | src/geodesic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geodesic.h b/src/geodesic.h index 536ba7c4..cd7c2b70 100644 --- a/src/geodesic.h +++ b/src/geodesic.h @@ -107,7 +107,7 @@ * twice about restructuring the internals of the C code since this may make * porting fixes from the C++ code more difficult. * - * 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/ * |
