From b35402cf0872bfc721ebbc6610ca9b6f5cceb0b9 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 23 Oct 2026 17:38:57 +0200 Subject: [PATCH] Keep the overflow-limit numbers of the parser test in a std::vector clang-tidy (cppcoreguidelines-avoid-c-arrays) rejected the C array. Signed-off-by: Niels Lohmann --- tests/src/unit-class_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-class_parser.cpp b/tests/src/unit-class_parser.cpp index c82cdebc7..dd78f7ff4 100644 --- a/tests/src/unit-class_parser.cpp +++ b/tests/src/unit-class_parser.cpp @@ -2958,7 +2958,7 @@ TEST_CASE("accept() agrees with parse() on floats around the overflow limit") // accept() does not convert a float that cannot overflow; the tokens // around the limit (and beyond it) must still be rejected exactly as // parse() rejects them - const char* const numbers[] = + const std::vector numbers = { "1e0", "123.456e-5", "1e-400", "-1e-400", "1e307", "1e308", "1e309", "-1e309", "10e307", "100e307", "0.1e309", "0.1e310", "1E+308", "1E+309",