summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* time-regress: Add test for NaN case.Fred Wright2019-03-211-0/+3
| | | | | | | | | | This was punted when fixing the NaN case, due to the failure to notice that a NaN constant was available with unexpected capitalization. Now the test exists. TESTED: The new test fails with an intentionally incorrect expected value, and passes with the correct expectation.
* deg_to_str(): Add some more tests to check for LSBs.Gary E. Miller2019-02-231-0/+24
|
* deg_to_str(): Change 'nan' to 'n/a'.Gary E. Miller2019-02-221-18/+18
| | | | To be compatible with existing cgps, etc.
* deg_to_str2(): Add new function. Thread safe, handles suffix.Gary E. Miller2019-02-221-28/+92
|
* deg_to_s(): Add check, and regression test, for not a NaN.Gary E. Miller2019-02-221-2/+15
|
* deg_to_s() and calls to it: Allow negative degrees, use fabs().Gary E. Miller2019-02-221-5/+17
| | | | | Every call to deg_to_s() was preceded by a fabs(deg). So move the fabs() into deg_to_s().
* deg_to_s(): Add rounding for dd, ddmm, and ddmmss. Update tests.Gary E. Miller2019-02-221-26/+44
|
* deg_to_s(): Add more tests. Not all 'good'.Gary E. Miller2019-02-211-3/+26
| | | | deg_to_s() needs to do better rounding.
* deg_to_s(): Fix bad conversion. Add test cases.Gary E. Miller2019-02-211-0/+98
| | | | Bug and test case by: Stephen Moshier <steve@moshier.net>
* Fixes time-regress for 32-bit time_t platforms.Fred Wright2018-11-211-1/+24
| | | | | | | | | | | | One of the test cases for the unix<->iso8601 tests uses a value which exceeds the time range on systems with a 32-bit time_t. This adds a check to skip such cases (with a warning message) on such platforms. TESTED: Ran time-regress on both a 64-bit time_t machine and a 32-bit time_t machine. It now succeeds in both cases, with warnings in the 32-bit case.
* test_gpsmm: Fix to build in new tests/ directory.Gary E. Miller2018-11-091-2/+2
|
* tests: move most tests into tests/Gary E. Miller2018-11-0812-0/+2929
Cuts the clutter a bit in the top level directory.