* Compare the expected output with the actual output */
| 74 | * Compare the expected output with the actual output |
| 75 | */ |
| 76 | static inline bool ComparePackObjectResult(const String& actualOutput, const std::initializer_list<int>& out) |
| 77 | { |
| 78 | if (actualOutput.GetLength() != out.size()) |
| 79 | return false; |
| 80 | |
| 81 | auto actualOutputPos = actualOutput.Begin(); |
| 82 | for (auto byte : out) { |
| 83 | if (*actualOutputPos != UIntToByte(byte)) |
| 84 | return false; |
| 85 | |
| 86 | ++actualOutputPos; |
| 87 | } |
| 88 | |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Pack the given input and compare with the expected output |
no test coverage detected