@@ -32,12 +32,14 @@ TEST_CASE("as_unsigned (changed)", "[utility]") {
3232 std::uint32_t >);
3333 STATIC_REQUIRE (std::is_same_v<decltype (stdx::as_unsigned (std::int64_t {})),
3434 std::uint64_t >);
35+ STATIC_REQUIRE (stdx::as_unsigned (std::int8_t {17 }) == 17 );
3536}
3637
3738TEMPLATE_TEST_CASE (" as_unsigned (unchanged)" , " [utility]" , std::uint8_t ,
3839 std::uint16_t , std::uint32_t , std::uint64_t ) {
3940 STATIC_REQUIRE (
4041 std::is_same_v<decltype (stdx::as_unsigned (TestType{})), TestType>);
42+ STATIC_REQUIRE (stdx::as_unsigned (TestType{17 }) == 17 );
4143}
4244
4345TEST_CASE (" as_signed (changed)" , " [utility]" ) {
@@ -49,12 +51,14 @@ TEST_CASE("as_signed (changed)", "[utility]") {
4951 std::int32_t >);
5052 STATIC_REQUIRE (std::is_same_v<decltype (stdx::as_signed (std::uint64_t {})),
5153 std::int64_t >);
54+ STATIC_REQUIRE (stdx::as_signed (std::uint8_t {17 }) == 17 );
5255}
5356
5457TEMPLATE_TEST_CASE (" as_signed (unchanged)" , " [utility]" , std::int8_t ,
5558 std::int16_t , std::int32_t , std::int64_t ) {
5659 STATIC_REQUIRE (
5760 std::is_same_v<decltype (stdx::as_signed (TestType{})), TestType>);
61+ STATIC_REQUIRE (stdx::as_signed (TestType{17 }) == 17 );
5862}
5963
6064TEMPLATE_TEST_CASE (" sized<T> in (uint8_t zero/one/two case)" , " [utility]" ,
0 commit comments