| 18 | double constexpr kEpsilon = 0.00001; |
| 19 | |
| 20 | bool AlmostEqualAbs(vector<double> const & v1, vector<double> const & v2) |
| 21 | { |
| 22 | if (v1.size() != v2.size()) |
| 23 | return false; |
| 24 | |
| 25 | for (size_t i = 0; i < v1.size(); ++i) |
| 26 | if (!::AlmostEqualAbs(v1[i], v2[i], kEpsilon)) |
| 27 | return false; |
| 28 | return true; |
| 29 | } |
| 30 | |
| 31 | bool IsColor(vector<uint8_t> const & frameBuffer, size_t startColorIdx, uint8_t expectedR, uint8_t expectedG, |
| 32 | uint8_t expectedB, uint8_t expectedA) |
no test coverage detected