From b9d2c2aad9e4c40286d01aa601d7e0e7cb6f40f8 Mon Sep 17 00:00:00 2001 From: ado Date: Tue, 8 Aug 2023 12:57:15 +0200 Subject: [PATCH] Fix big number extraction test --- test/test_extractions.cpp | 4 ++-- test/test_extractions_without_fast_float.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_extractions.cpp b/test/test_extractions.cpp index 8b2b64b..2ed550d 100644 --- a/test/test_extractions.cpp +++ b/test/test_extractions.cpp @@ -64,8 +64,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs") { CHECK_INVALID_CONVERSION("xxx1", float); // number too big - CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." + - std::string{40, '2'}), + CHECK_INVALID_CONVERSION((std::string(40, '1') + "." + + std::string(40, '2')), double); // random input for int diff --git a/test/test_extractions_without_fast_float.cpp b/test/test_extractions_without_fast_float.cpp index 7e6660c..e3871a6 100644 --- a/test/test_extractions_without_fast_float.cpp +++ b/test/test_extractions_without_fast_float.cpp @@ -31,8 +31,8 @@ TEST_CASE("extract test functions for numbers with invalid inputs without fast " CHECK_INVALID_CONVERSION("xxx1", float); // number too big - CHECK_INVALID_CONVERSION((std::string{40, '1'} + "." + - std::string{40, '2'}), + CHECK_INVALID_CONVERSION((std::string(40, '1') + "." + + std::string(40, '2')), double); }