Skip to content

Commit

Permalink
Fix non-constexpr function.
Browse files Browse the repository at this point in the history
  • Loading branch information
karnkaul committed Sep 23, 2023
1 parent 802bf1b commit d74b140
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/tests/test_vec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ static_assert(noiz::Vec2f{4.0f, 9.0f} / noiz::Vec2f{2.0f, 3.0f} == noiz::Vec2f{2
static_assert(noiz::dot(noiz::Vec2f{2.0f, 3.0f}, noiz::Vec2f{4.0f, 5.0f}) == 23.0f); // NOLINT
static_assert(noiz::Vec2f{2.0f, 3.0f}.sqr_magnitude() == 13.0f); // NOLINT

static_assert(noiz::Vec2f{1.0f, 0.0f}.is_normalized());

ADD_TEST(vec2_magnitude) {
auto const vec = noiz::Vec2f{3.0f, 4.0f}; // NOLINT
EXPECT(vec.magnitude() == 5.0f); // NOLINT
Expand Down

0 comments on commit d74b140

Please sign in to comment.