@@ -25,7 +25,7 @@ TEST_FUNC constexpr bool test()
2525 auto def = cuda::__argument::__deferred{cuda::std::span<int , 1 >{&val, 1 }};
2626 assert (cuda::__argument::__unwrap (def)[0 ] == 42 );
2727 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == cuda::std::numeric_limits<int >::lowest ());
28- static_assert (cuda::__argument::__traits<decltype (def)>::max == cuda::std::numeric_limits<int >::max ());
28+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == ( cuda::std::numeric_limits<int >::max) ());
2929 }
3030
3131 // Deferred single value with static bounds
@@ -34,15 +34,15 @@ TEST_FUNC constexpr bool test()
3434 auto def = cuda::__argument::__deferred{cuda::std::span<int , 1 >{&val, 1 }, cuda::__argument::__bounds<1 , 1000 >()};
3535 assert (cuda::__argument::__unwrap (def)[0 ] == 42 );
3636 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 1 );
37- static_assert (cuda::__argument::__traits<decltype (def)>::max == 1000 );
37+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == 1000 );
3838 }
3939
4040 // Deferred single value via pointer
4141 {
4242 int val = 42 ;
4343 using def_t = cuda::__argument::__deferred<int *, cuda::__argument::__static_bounds<0 , 100 >>;
4444 static_assert (cuda::__argument::__traits<def_t >::lowest == 0 );
45- static_assert (cuda::__argument::__traits<def_t >::max == 100 );
45+ static_assert (cuda::__argument::__traits<def_t >::highest == 100 );
4646 // Also verify construction works
4747 auto def = cuda::__argument::__deferred{&val, cuda::__argument::__bounds<0 , 100 >()};
4848 assert (cuda::__argument::__unwrap (def) == &val);
@@ -54,7 +54,7 @@ TEST_FUNC constexpr bool test()
5454 auto def = cuda::__argument::__deferred{it, cuda::__argument::__bounds<0 , 100 >()};
5555 assert (cuda::__argument::__unwrap (def)[0 ] == 42 );
5656 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 0 );
57- static_assert (cuda::__argument::__traits<decltype (def)>::max == 100 );
57+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == 100 );
5858 static_assert (cuda::__argument::__traits<decltype (def)>::is_single_value);
5959 }
6060
@@ -64,9 +64,9 @@ TEST_FUNC constexpr bool test()
6464 auto def = cuda::__argument::__deferred{
6565 cuda::std::span<int , 1 >{&val, 1 }, cuda::__argument::__bounds (5 , 100 ), cuda::__argument::__bounds<1 , 256 >()};
6666 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 1 );
67- static_assert (cuda::__argument::__traits<decltype (def)>::max == 256 );
67+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == 256 );
6868 assert (cuda::__argument::__lowest_ (def) == 5 );
69- assert (cuda::__argument::__max_ (def) == 100 );
69+ assert (cuda::__argument::__highest_ (def) == 100 );
7070 }
7171
7272 // Deferred sequence via fancy iterator
@@ -76,7 +76,7 @@ TEST_FUNC constexpr bool test()
7676 assert (cuda::__argument::__unwrap (def)[0 ] == 10 );
7777 assert (cuda::__argument::__unwrap (def)[2 ] == 12 );
7878 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 0 );
79- static_assert (cuda::__argument::__traits<decltype (def)>::max == 100 );
79+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == 100 );
8080 static_assert (!cuda::__argument::__traits<decltype (def)>::is_single_value);
8181 }
8282
@@ -87,7 +87,7 @@ TEST_FUNC constexpr bool test()
8787 cuda::std::span<int >{arr, 4 }, cuda::__argument::__bounds<1 , 4096 >(), cuda::__argument::__bounds (5 , 100 )};
8888 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 1 );
8989 assert (cuda::__argument::__lowest_ (def) == 5 );
90- assert (cuda::__argument::__max_ (def) == 100 );
90+ assert (cuda::__argument::__highest_ (def) == 100 );
9191 }
9292
9393 // Deferred sequence with both bounds, runtime bounds first
@@ -96,9 +96,9 @@ TEST_FUNC constexpr bool test()
9696 auto def = cuda::__argument::__deferred_sequence{
9797 cuda::std::span<int >{arr, 4 }, cuda::__argument::__bounds (5 , 100 ), cuda::__argument::__bounds<1 , 4096 >()};
9898 static_assert (cuda::__argument::__traits<decltype (def)>::lowest == 1 );
99- static_assert (cuda::__argument::__traits<decltype (def)>::max == 4096 );
99+ static_assert (cuda::__argument::__traits<decltype (def)>::highest == 4096 );
100100 assert (cuda::__argument::__lowest_ (def) == 5 );
101- assert (cuda::__argument::__max_ (def) == 100 );
101+ assert (cuda::__argument::__highest_ (def) == 100 );
102102 }
103103
104104 // Traits: deferred is single value
0 commit comments