@@ -271,13 +271,13 @@ std::array<int,5> col {70, 8, 8, 8, 40};
271
271
272
272
auto print (auto const & what, auto const & value, auto const & expected, auto const & comment) -> void{
273
273
auto l {[](auto const & value) -> std::string{
274
- return [&] () -> std::string { auto && __expr = value;
275
- if (cpp2::is (__expr , (true ))) { if constexpr ( requires{" true" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" true" )),std::string> ) return " true" ; else return std::string{}; else return std::string{}; }
276
- else if (cpp2::is (__expr , false )) { if constexpr ( requires{" false" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" false" )),std::string> ) return " false" ; else return std::string{}; else return std::string{}; }
274
+ return [&] () -> std::string { auto && _expr = value;
275
+ if (cpp2::is (_expr , (true ))) { if constexpr ( requires{" true" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" true" )),std::string> ) return " true" ; else return std::string{}; else return std::string{}; }
276
+ else if (cpp2::is (_expr , false )) { if constexpr ( requires{" false" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" false" )),std::string> ) return " false" ; else return std::string{}; else return std::string{}; }
277
277
else return cpp2::to_string (value); }
278
278
();
279
279
}};
280
- print (what, l (value), std::move (l)(expected), [&] () -> std::string { auto && __expr = (value == expected); if (cpp2::is (__expr , (true ))) { if constexpr ( requires{" OK" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" OK" )),std::string> ) return " OK" ; else return std::string{}; else return std::string{}; }else return " FAILED!" ; }(), comment);
280
+ print (what, l (value), std::move (l)(expected), [&] () -> std::string { auto && _expr = (value == expected); if (cpp2::is (_expr , (true ))) { if constexpr ( requires{" OK" ;} ) if constexpr ( std::is_convertible_v<CPP2_TYPEOF ((" OK" )),std::string> ) return " OK" ; else return std::string{}; else return std::string{}; }else return " FAILED!" ; }(), comment);
281
281
}
282
282
283
283
auto print (auto const & what, auto const & value, auto const & expected) -> void{
0 commit comments