Skip to content

Commit

Permalink
Fixed test issues with test_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Kargin authored and dkargin committed Oct 19, 2024
1 parent 59500df commit e41de4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rostime/test_duration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ TEST(Duration, castFromInt64Exceptions)
// The next casts all incorrect.
EXPECT_THROW(d1.fromSec(2147483648000000000), std::runtime_error);
EXPECT_THROW(d2.fromSec(4294967296000000000), std::runtime_error);
EXPECT_THROW(d3.fromSec(-2147483648000000001), std::runtime_error);
EXPECT_THROW(d4.fromSec(-6442450943000000000), std::runtime_error);
EXPECT_THROW(d3.fromSec(-2.147483648E+18), std::runtime_error);
EXPECT_THROW(d4.fromSec(-6442450943000000512), std::runtime_error);
}

TEST(Duration, arithmeticExceptions)
Expand Down

0 comments on commit e41de4e

Please sign in to comment.