diff options
| author | Charles Karney <charles.karney@sri.com> | 2020-10-27 10:02:27 -0400 |
|---|---|---|
| committer | Charles Karney <charles.karney@sri.com> | 2020-10-27 10:02:27 -0400 |
| commit | 94e36270ca393bd7b107bf690f09fd8ec1cd046b (patch) | |
| tree | dd153675742ead1db539f3b7d155b6bb95ba4d7c /test/unit/pj_phi2_test.cpp | |
| parent | 6bd7c777f8e789f8ea34a6aa68104ab44a31beee (diff) | |
| download | PROJ-94e36270ca393bd7b107bf690f09fd8ec1cd046b.tar.gz PROJ-94e36270ca393bd7b107bf690f09fd8ec1cd046b.zip | |
Use nm units in builtins.gie. Remove backward looking comments in code.
Diffstat (limited to 'test/unit/pj_phi2_test.cpp')
| -rw-r--r-- | test/unit/pj_phi2_test.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/unit/pj_phi2_test.cpp b/test/unit/pj_phi2_test.cpp index f344a3d0..fdedae98 100644 --- a/test/unit/pj_phi2_test.cpp +++ b/test/unit/pj_phi2_test.cpp @@ -39,15 +39,14 @@ namespace { TEST(PjPhi2Test, Basic) { projCtx ctx = pj_get_default_ctx(); - // Remove tests with |e| >= 1. Expectation is that only sane values of e - // (and nan is here reckoned to be sane) are passed to pj_phi2. Thus the - // return value with other values of e is "implementation dependent". + // Expectation is that only sane values of e (and nan is here reckoned to + // be sane) are passed to pj_phi2. Thus the return value with other values + // of e is "implementation dependent". constexpr auto inf = std::numeric_limits<double>::infinity(); constexpr auto nan = std::numeric_limits<double>::quiet_NaN(); - // Use EXPECT_EQ instead of EXPECT_DOUBLE_EQ. Strict equality is demanded - // here. + // Strict equality is demanded here. EXPECT_EQ( M_PI_2, pj_phi2(ctx, +0.0, 0.0)); EXPECT_EQ( 0.0 , pj_phi2(ctx, 1.0, 0.0)); EXPECT_EQ(-M_PI_2, pj_phi2(ctx, inf, 0.0)); |
