Commit 3393541f4466ebc1d2037e9e12c0551ff8d14bba
1 parent
e6064d2a
Add kludge to avoid precision problem in unit test of point source contains() method.
Showing
1 changed file
with
1 additions
and
0 deletions
test/test_GModel.cpp
| ... | ... | @@ -926,6 +926,7 @@ void TestGModel::test_point_source(void) |
| 926 | 926 | // Test region method |
| 927 | 927 | GSkyDir dir2; |
| 928 | 928 | dir2.radec_deg(83.6331, +22.0145); |
| 929 | + model6.dir(dir2); // Kludge to avoid rounding errors on 32 Bit systems | |
| 929 | 930 | test_assert(model6.region()->contains(dir2), "Test region() method (inside)"); |
| 930 | 931 | dir2.radec_deg(84.6331, +22.0145); |
| 931 | 932 | test_assert(!model6.region()->contains(dir2), "Test region() method (outside)"); | ... | ... |