From 2e6bfe5c68fd369243e4517c4c0ecd28e708eb9f Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 27 Dec 2021 14:06:49 +0800 Subject: [PATCH] fish_tests: actually test fish_wcstod The test was running against the standard library rather than the fish replacement. --- src/fish_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 6d63eba94..1e1d3484f 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -2985,7 +2985,7 @@ static void test_wcstod() { auto tod_test = [](const wchar_t *a, const char *b) { char *narrow_end = nullptr; wchar_t *wide_end = nullptr; - double val1 = std::wcstod(a, &wide_end); + double val1 = fish_wcstod(a, &wide_end); double val2 = strtod(b, &narrow_end); do_test((std::isnan(val1) && std::isnan(val2)) || fabs(val1 - val2) <= __DBL_EPSILON__); do_test(wide_end - a == narrow_end - b);