| 1239 | } |
| 1240 | |
| 1241 | inline void expect_equality(char const *a, char const *b, std::size_t size) { |
| 1242 | if (std::memcmp(a, b, size) == 0) return; |
| 1243 | std::size_t mismatch_position = 0; |
| 1244 | for (; mismatch_position < size; ++mismatch_position) |
| 1245 | if (a[mismatch_position] != b[mismatch_position]) break; |
| 1246 | std::fprintf(stderr, "Mismatch at position %zu: %c != %c\n", mismatch_position, a[mismatch_position], |
| 1247 | b[mismatch_position]); |
| 1248 | assert(false); |
| 1249 | } |
| 1250 | |
| 1251 | /** |
| 1252 | * @brief Validates that `sz::memcpy`, `sz::memset`, and `sz::memmove` work similar to their `std::` counterparts. |
no outgoing calls
no test coverage detected
searching dependent graphs…