mirror of https://github.com/dnomd343/md5sum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
432 B
20 lines
432 B
8 months ago
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
inline std::string build_test_data(const uint32_t size) {
|
||
|
std::string data(size, 0x00);
|
||
|
for (uint32_t i = 0; i < size; ++i) {
|
||
|
data[i] = static_cast<char>(i);
|
||
|
}
|
||
|
return data;
|
||
|
};
|
||
|
|
||
|
namespace testing::internal {
|
||
|
|
||
|
inline bool operator==(const std::array<char, 32> &s1, const std::string_view &s2) {
|
||
|
return std::string {s1.data(), 32} == s2;
|
||
|
}
|
||
|
|
||
|
} // namespace testing::internal
|