Skip to content

Commit

Permalink
Update wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph Eng <[email protected]>
  • Loading branch information
calcmogul and KangarooKoala authored Dec 6, 2024
1 parent e60dc56 commit d57f421
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions wpimath/src/test/native/cpp/geometry/Rotation2dTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit d57f421

Please sign in to comment.