| 396 | } |
| 397 | |
| 398 | std::tuple<std::string_view, WasmEdge::Configure, std::string> |
| 399 | SpecTest::resolve(std::string_view Params) const { |
| 400 | const auto Pos = Params.find_last_of(' '); |
| 401 | const std::string_view ProposalPath = Params.substr(0, Pos); |
| 402 | const auto &MatchedProposal = *std::find_if( |
| 403 | std::begin(TestsuiteProposals), std::end(TestsuiteProposals), |
| 404 | [&ProposalPath](const auto &Proposal) { |
| 405 | return Proposal.Path == ProposalPath; |
| 406 | }); |
| 407 | return std::tuple<std::string_view, WasmEdge::Configure, std::string>{ |
| 408 | MatchedProposal.Path, MatchedProposal.Conf, Params.substr(Pos + 1)}; |
| 409 | } |
| 410 | |
| 411 | bool SpecTest::compare(const std::pair<std::string, std::string> &Expected, |
| 412 | const std::pair<ValVariant, ValType> &Got) const { |