From 164613e0e8281f798e70530fa4a6e3db2834d18e Mon Sep 17 00:00:00 2001 From: "xanthos@durruti" Date: Tue, 22 Oct 2024 21:38:13 +0300 Subject: [PATCH] test hpe ok --- include/tpdate.hpp | 4 ++-- test/sofa/epj_date.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/tpdate.hpp b/include/tpdate.hpp index b236da5..9a92776 100644 --- a/include/tpdate.hpp +++ b/include/tpdate.hpp @@ -275,7 +275,7 @@ class TwoPartDateUTC { /** @brief Transform a UTC date to a TT date */ TwoPartDate utc2tt() const noexcept; - + /** @brief Overload the '>' operator. */ bool operator>(const TwoPartDateUTC &d) const noexcept { return (_mjd > d._mjd) || ((_mjd == d._mjd) && (_fsec > d._fsec)); @@ -295,7 +295,7 @@ class TwoPartDateUTC { bool operator<=(const TwoPartDateUTC &d) const noexcept { return (_mjd < d._mjd) || ((_mjd == d._mjd) && (_fsec <= d._fsec)); } - + /** @brief Overload equality operator. */ bool operator==(const TwoPartDateUTC &d) const noexcept { return (_mjd == d._mjd) && (_fsec == d._fsec); diff --git a/test/sofa/epj_date.cpp b/test/sofa/epj_date.cpp index f9183f2..48c6b9b 100644 --- a/test/sofa/epj_date.cpp +++ b/test/sofa/epj_date.cpp @@ -50,8 +50,10 @@ int main() { TwoPartDate di = epj2tpd(je); assert(d.imjd() - di.imjd() == 0); #ifdef DEBUG - if (std::abs(d.seconds().seconds() - di.seconds().seconds()) > maxdiffs[0]) - maxdiffs[0] = std::abs(d.seconds().seconds() - di.seconds().seconds()); + if (std::abs(d.seconds().seconds() - di.seconds().seconds()) > + maxdiffs[0]) + maxdiffs[0] = + std::abs(d.seconds().seconds() - di.seconds().seconds()); avediffs[0] += std::abs(d.seconds().seconds() - di.seconds().seconds()); #endif epj_lib = je;