Skip to content

Commit ef5f875

Browse files
committed
Adjust regression-tests to new UFCS
1 parent e75657f commit ef5f875

6 files changed

+6
-6
lines changed

regression-tests/test-results/pure2-inspect-expression-in-generic-function-multiple-types.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ auto test_generic(auto const& x) -> void;
3232

3333
auto test_generic(auto const& x) -> void{
3434
std::cout
35-
<< std::setw(30) << typeid(x).name()
35+
<< std::setw(30) << CPP2_UFCS_0(name, typeid(x))
3636
<< " value is "
3737
<< [&] () -> std::string { auto&& __expr = x;
3838
if (cpp2::is<int>(__expr)) { if constexpr( requires{"integer " + std::to_string(cpp2::as<int>(x));} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF(("integer " + std::to_string(cpp2::as<int>(x)))),std::string> ) return "integer " + std::to_string(cpp2::as<int>(x)); else return std::string{}; else return std::string{}; }

regression-tests/test-results/pure2-inspect-expression-with-as-in-generic-function.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ auto print_an_int(auto const& x) -> void;
1919

2020
auto print_an_int(auto const& x) -> void{
2121
std::cout
22-
<< std::setw(30) << typeid(x).name()
22+
<< std::setw(30) << CPP2_UFCS_0(name, typeid(x))
2323
<< " value is "
2424
<< [&] () -> std::string { auto&& __expr = x;
2525
if (cpp2::is<int>(__expr)) { if constexpr( requires{std::to_string(cpp2::as<int>(x));} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((std::to_string(cpp2::as<int>(x)))),std::string> ) return std::to_string(cpp2::as<int>(x)); else return std::string{}; else return std::string{}; }

regression-tests/test-results/pure2-inspect-fallback-with-variant-any-optional.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ auto test_generic(auto const& x) -> void;
2626

2727
auto test_generic(auto const& x) -> void{
2828
std::cout
29-
<< "\n" << typeid(x).name() << "\n ..."
29+
<< "\n" << CPP2_UFCS_0(name, typeid(x)) << "\n ..."
3030
<< [&] () -> std::string { auto&& __expr = x;
3131
if (cpp2::is<std::string>(__expr)) { if constexpr( requires{" matches std::string";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((" matches std::string")),std::string> ) return " matches std::string"; else return std::string{}; else return std::string{}; }
3232
else if (cpp2::is<std::variant<int,std::string>>(__expr)) { if constexpr( requires{" matches std::variant<int, std::string>";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((" matches std::variant<int, std::string>")),std::string> ) return " matches std::variant<int, std::string>"; else return std::string{}; else return std::string{}; }

regression-tests/test-results/pure2-inspect-generic-void-empty-with-variant-any-optional.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ auto test_generic(auto const& x) -> void;
3030

3131
auto test_generic(auto const& x) -> void{
3232
std::cout
33-
<< "\n" << typeid(x).name() << "\n ..."
33+
<< "\n" << CPP2_UFCS_0(name, typeid(x)) << "\n ..."
3434
<< [&] () -> std::string { auto&& __expr = x;
3535
if (cpp2::is<void>(__expr)) { if constexpr( requires{" VOYDE AND EMPTIE";} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((" VOYDE AND EMPTIE")),std::string> ) return " VOYDE AND EMPTIE"; else return std::string{}; else return std::string{}; }
3636
else return " no match"; }

regression-tests/test-results/pure2-type-safety-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ auto print(cpp2::in<std::string> msg, cpp2::in<bool> b) -> void;
3939
}
4040

4141
auto test_generic(auto const& x) -> void{
42-
std::string msg { typeid(x).name() };
42+
std::string msg { CPP2_UFCS_0(name, typeid(x)) };
4343
msg += " is int? ";
4444
print( msg, cpp2::is<int>(x));
4545
}

regression-tests/test-results/pure2-type-safety-2-with-inspect-expression.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ auto test_generic(auto const& x) -> void;
3232

3333
auto test_generic(auto const& x) -> void{
3434
std::cout
35-
<< std::setw(30) << typeid(x).name()
35+
<< std::setw(30) << CPP2_UFCS_0(name, typeid(x))
3636
<< " value is "
3737
<< [&] () -> std::string { auto&& __expr = x;
3838
if (cpp2::is<int>(__expr)) { if constexpr( requires{std::to_string(cpp2::as<int>(x));} ) if constexpr( std::is_convertible_v<CPP2_TYPEOF((std::to_string(cpp2::as<int>(x)))),std::string> ) return std::to_string(cpp2::as<int>(x)); else return std::string{}; else return std::string{}; }

0 commit comments

Comments
 (0)