Skip to content

Commit 620b5fe

Browse files
committed
Update tests replace __expr to _expr
1 parent 3e1282e commit 620b5fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

regression-tests/test-results/mixed-overview-of-as-casts.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ std::array<int,5> col {70, 8, 8, 8, 40};
271271

272272
auto print(auto const& what, auto const& value, auto const& expected, auto const& comment) -> void{
273273
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{}; }
277277
else return cpp2::to_string(value); }
278278
();
279279
}};
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);
281281
}
282282

283283
auto print(auto const& what, auto const& value, auto const& expected) -> void{

regression-tests/test-results/mixed-overview-of-is-inspections.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ auto print(auto const& what, auto const& value, auto const& expected, auto const
326326
return "false";
327327
}
328328
}};
329-
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);
329+
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);
330330
}
331331

332332
auto print(auto const& what, auto const& value, auto const& expected) -> void{

0 commit comments

Comments
 (0)