fix comparators func name

This commit is contained in:
2025-11-21 12:28:53 +03:00
parent 1432186387
commit 53adbf4d6e

View File

@@ -46,7 +46,7 @@ namespace hack::comparators
// epsilon - допустимая погрешность для float
template<typename T>
comp_result compare_float_array_with_file(const std::vector<T>& in, const std::filesystem::path& path, float epsilon = 0.000'01)
comp_result compare_array_with_file(const std::vector<T>& in, const std::filesystem::path& path, float epsilon = 0.000'01)
{
comp_result res{};
@@ -102,7 +102,7 @@ namespace hack::comparators
template<typename T>
inline void compare(const std::vector<T>& in, const std::filesystem::path& path, float epsilon = 1e-6f)
{
auto r = compare_float_array_with_file(in, path, epsilon);
auto r = compare_array_with_file(in, path, epsilon);
log().set_devider("");
log()("result: ", r.m_is_equal == true ? "TRUE " : "FALSE ");
if (!r.m_is_equal)