| 87 | |
| 88 | template <typename T> |
| 89 | static inline bool vector_equal(const std::vector<T>& left, const std::vector<T>& right) { |
| 90 | if (left.size() != right.size()) { |
| 91 | return false; |
| 92 | } |
| 93 | |
| 94 | for (size_t i = 0; i < left.size(); ++i) { |
| 95 | if (left[i] != right[i]) { |
| 96 | std::cerr << "index " << i << " left was " << left[i] << " right was " << right[i] |
| 97 | << std::endl; |
| 98 | return false; |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | return true; |
| 103 | } |
| 104 | |
| 105 | template <typename T> |
| 106 | static std::vector<T> slice(const std::vector<T>& values, int start, int end) { |
no test coverage detected