Skip to content

Commit

Permalink
Fixed the is_even and is_odd test table types
Browse files Browse the repository at this point in the history
  • Loading branch information
capo-at-the-5th-fret committed Nov 22, 2024
1 parent 9dfb903 commit 6fc2c71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cmath_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ TEMPLATE_LIST_TEST_CASE("is_even using signed types", "[cmath][is_even]",
using T = TestType;
static_assert(std::is_signed_v<T>);

auto [x, expected] = GENERATE(table<T,T>(
auto [x, expected] = GENERATE(table<T,bool>(
{
{ T{ 0 }, true },
{ T{ 1 }, false },
Expand All @@ -113,7 +113,7 @@ TEMPLATE_LIST_TEST_CASE("is_even using unsigned types", "[cmath][is_even]",
using T = TestType;
static_assert(std::is_unsigned_v<T>);

auto [x, expected] = GENERATE(table<T,T>(
auto [x, expected] = GENERATE(table<T,bool>(
{
{ T{ 0 }, true },
{ T{ 1 }, false },
Expand All @@ -131,7 +131,7 @@ TEMPLATE_LIST_TEST_CASE("is_odd using signed types", "[cmath][is_odd]",
using T = TestType;
static_assert(std::is_signed_v<T>);

auto [x, expected] = GENERATE(table<T,T>(
auto [x, expected] = GENERATE(table<T,bool>(
{
{ T{ 0 }, false },
{ T{ 1 }, true },
Expand All @@ -153,7 +153,7 @@ TEMPLATE_LIST_TEST_CASE("is_odd using unsigned types", "[cmath][is_odd]",
using T = TestType;
static_assert(std::is_unsigned_v<T>);

auto [x, expected] = GENERATE(table<T,T>(
auto [x, expected] = GENERATE(table<T,bool>(
{
{ T{ 0 }, false },
{ T{ 1 }, true },
Expand Down

0 comments on commit 6fc2c71

Please sign in to comment.