Skip to content

Commit

Permalink
Fix color-related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Aug 29, 2024
1 parent 6c8df1d commit ef42c63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/testoscar/Graphics/TestRgba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ TEST(Rgba, can_be_decomposed_into_component_parts)
const Rgba<float> rgba{1.0f, 2.0f, 3.0f, 0.5f};
const auto& [r, g, b, a] = rgba;

ASSERT_EQ(rgba.r, 1.0f);
ASSERT_EQ(rgba.g, 2.0f);
ASSERT_EQ(rgba.b, 3.0f);
ASSERT_EQ(rgba.a, 0.5f);
ASSERT_EQ(r, 1.0f);
ASSERT_EQ(g, 2.0f);
ASSERT_EQ(b, 3.0f);
ASSERT_EQ(a, 0.5f);
}

TEST(Rgba, can_be_decomposed_into_mutable_component_parts)
Expand Down
2 changes: 1 addition & 1 deletion tests/testoscar/Graphics/TestUnorm8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ TEST(Unorm8, can_be_streamed_to_ostream)

TEST(Unorm8, can_be_hashed_with_std_hash)
{
const Unorm8 value;
const Unorm8 value{0x48};
ASSERT_NE(std::hash<Unorm8>{}(value), 0);
}

0 comments on commit ef42c63

Please sign in to comment.