diff --git a/wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp b/wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp index 8af63581c70..60d372cdc63 100644 --- a/wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp +++ b/wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp @@ -91,10 +91,8 @@ TEST(Rotation2dTest, Constexpr) { static_assert(defaultCtor.Radians() == 0_rad); static_assert(degreeCtor.Degrees() == -90_deg); - static_assert(negated.Radians() == - units::radian_t{-(5 - 2 * std::numbers::pi)}); - static_assert(multiplied.Radians() == - units::radian_t{10 - 4 * std::numbers::pi}); + static_assert(negated.Radians() == -5_rad + 1_tr); + static_assert(multiplied.Radians() == 10_rad - 2_tr); static_assert(subtracted == rotation45); static_assert(radianCtor != degreeCtor); }