Skip to content
Snippets Groups Projects
Commit 7ee1460d authored by Philip Trettner's avatar Philip Trettner
Browse files

gcc fix

parent 454ead81
No related branches found
No related tags found
No related merge requests found
Pipeline #17458 failed
glow-extras @ 3b6ed5b0
Subproject commit 75e4b97dc37f6e570f15f6bdc618cbc0acbdf4e4 Subproject commit 3b6ed5b04d27ea6a1881dd8c9c4e3a953c278edb
typed-geometry @ 284afd6d
Subproject commit 9b094fe5b91fe61e87c3eb16cbc4de1866a8fc2e Subproject commit 284afd6d95f579066d800345648367e7d986d8cf
...@@ -13,8 +13,9 @@ TG_FUZZ_TEST(TypedGeometry, Intersections) ...@@ -13,8 +13,9 @@ TG_FUZZ_TEST(TypedGeometry, Intersections)
auto const t = tg::closest_intersection_parameter(ray, obj); auto const t = tg::closest_intersection_parameter(ray, obj);
if (t.has_value()) if (t.has_value())
{ {
CHECK(t.value() == ts.first()); CHECK(t.value() == approx(ts.first()));
CHECK(closest_intersection(ray, obj) == ray[t.value()]); CHECK(closest_intersection(ray, obj).has_value());
CHECK(closest_intersection(ray, obj).value() == approx(ray[t.value()], 0.01f));
CHECK(intersects(ray, obj)); CHECK(intersects(ray, obj));
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment