From 5fda2cc240ab38ab5e6145edadb6a4a2389b1288 Mon Sep 17 00:00:00 2001 From: Marvin Date: Tue, 12 Dec 2023 19:07:51 -0500 Subject: [PATCH] Debugging results --- tests/fast_int.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fast_int.cpp b/tests/fast_int.cpp index 219e457..2304918 100644 --- a/tests/fast_int.cpp +++ b/tests/fast_int.cpp @@ -36,8 +36,9 @@ int main() const auto& f = int_basic_test[i]; int result; auto answer = fast_float::from_chars(f.data(), f.data() + f.size(), result); + if (answer.ec != std::errc()) { - std::cerr << "could not convert to int for input: " << std::quoted(f) << std::endl; + std::cerr << "1. could not convert to int for input: " << std::quoted(f) << " " << result << " " << answer.ptr << std::endl; return EXIT_FAILURE; } else if (result != int_basic_test_expected[i]) {