diff --git a/tests/utility/extent_test.cu b/tests/utility/extent_test.cu index d069f4dbd..d44e20368 100644 --- a/tests/utility/extent_test.cu +++ b/tests/utility/extent_test.cu @@ -44,13 +44,13 @@ TEMPLATE_TEST_CASE_SIG( { auto constexpr size = cuco::experimental::extent{}; auto constexpr res = cuco::experimental::make_window_extent(size); - STATIC_REQUIRE(gold_reference == static_cast(res)); + STATIC_REQUIRE(gold_reference == res.value()); } SECTION("Compute dynamic valid extent at run time.") { auto const size = cuco::experimental::extent{num}; auto const res = cuco::experimental::make_window_extent(size); - REQUIRE(gold_reference == static_cast(res)); + REQUIRE(gold_reference == res.value()); } }