| 55 | } |
| 56 | |
| 57 | bool checkNew(std::map<std::string, std::string> Expect, |
| 58 | const std::map<std::string, std::string> &Result) { |
| 59 | for (const auto &Iter1 : Result) { |
| 60 | auto Path = fs::path(Iter1.first).filename().string(); |
| 61 | auto FindIter = Expect.find(Path); |
| 62 | if (FindIter == Expect.end()) |
| 63 | return false; |
| 64 | if (Iter1.second != FindIter->second) |
| 65 | return false; |
| 66 | Expect.erase(FindIter); |
| 67 | } |
| 68 | if (Expect.size() != 0) |
| 69 | return false; |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | bool checkModAll(const std::vector<Replacement> &Expect, |
| 74 | const std::map<std::string, Replacements> &Result) { |