Skip to content

Commit

Permalink
test hpe ok
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Oct 22, 2024
1 parent 43baf90 commit 164613e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/tpdate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down
6 changes: 4 additions & 2 deletions test/sofa/epj_date.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 164613e

Please sign in to comment.