| 713 | } |
| 714 | |
| 715 | bool SpecTest::stringContains(std::string_view Expected, |
| 716 | std::string_view Got) const { |
| 717 | if (Expected.rfind(Got, 0) != 0) { |
| 718 | spdlog::error(" ##### expected text : {}"sv, Expected); |
| 719 | spdlog::error(" ######## error text : {}"sv, Got); |
| 720 | return false; |
| 721 | } |
| 722 | return true; |
| 723 | } |
| 724 | |
| 725 | void SpecTest::run(std::string_view Proposal, std::string_view UnitName) { |
| 726 | spdlog::info("{} {}"sv, Proposal, UnitName); |