Guard chrono spaceship tests in no-STL builds

This commit is contained in:
Firat17aze 2026-10-15 21:15:48 -04:00
parent 01580777f6
commit a30e609ce0
8 changed files with 8 additions and 8 deletions

View File

@ -278,7 +278,7 @@ namespace
CHECK_TRUE(day10 >= day10);
CHECK_TRUE(day20 >= day10);
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
CHECK_TRUE((day10 <=> day10) == 0);
CHECK_TRUE((day10 <=> day20) < 0);
CHECK_TRUE((day20 <=> day10) > 0);

View File

@ -1045,7 +1045,7 @@ namespace
CHECK_EQUAL(1, s1.count()); // 10 seconds % (-3) seconds = 1 second
}
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
//*************************************************************************
TEST(test_duration_spaceship_operator)
{

View File

@ -303,7 +303,7 @@ namespace
CHECK_TRUE(month1 >= month1);
CHECK_TRUE(month2 >= month1);
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
CHECK_TRUE((month1 <=> month1) == 0);
CHECK_TRUE((month1 <=> month2) < 0);
CHECK_TRUE((month2 <=> month1) > 0);

View File

@ -89,7 +89,7 @@ namespace
CHECK_FALSE(md.ok()); // Invalid month_day
}
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
//*************************************************************************
TEST(test_month_day_spaceship_operator)
{

View File

@ -365,7 +365,7 @@ namespace
CHECK_FALSE(tp10d >= tp20h);
CHECK_FALSE(tp10h >= tp20d);
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
CHECK_TRUE((tp10h <=> tp10h) == 0);
CHECK_TRUE((tp10h <=> tp20h) < 0);
CHECK_TRUE((tp20h <=> tp10h) > 0);

View File

@ -284,7 +284,7 @@ namespace
CHECK_FALSE(year10 == year20);
CHECK_TRUE(year10 != year20);
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
CHECK_TRUE((year10 <=> year10) == 0);
CHECK_TRUE((year10 <=> year20) < 0);
CHECK_TRUE((year20 <=> year10) > 0);

View File

@ -89,7 +89,7 @@ namespace
CHECK_FALSE(ym.ok()); // Invalid year_month
}
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
//*************************************************************************
TEST(test_year_month_spaceship_operator)
{

View File

@ -98,7 +98,7 @@ namespace
CHECK_FALSE(ymd.ok()); // Invalid year_month_day
}
#if ETL_USING_CPP20
#if ETL_USING_CPP20 && ETL_USING_STL
//*************************************************************************
TEST(test_year_month_day_spaceship_operator)
{