Skip to content

Commit e9ccd55

Browse files
committed
Work around incomplete std::from_chars support
libc++ (at least the version used in macOS 15) doesn't seem to support doubles in std::from_chars yet. Hence, we remove the corresponding test case to avoid compiler errors.
1 parent e095d02 commit e9ccd55

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/unit/test_utilities.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <SeQuant/core/utility/strong.hpp>
1616
#include <SeQuant/core/utility/tensor.hpp>
1717

18+
#include <charconv>
1819
#include <limits>
1920
#include <ranges>
2021
#include <string>
@@ -607,9 +608,6 @@ TEST_CASE("utilities", "[utilities]") {
607608
WithinAbs(3.14, std::numeric_limits<float>::epsilon()));
608609
REQUIRE_THAT(string_to<float>("-3.14159"),
609610
WithinAbs(-3.14159, std::numeric_limits<float>::epsilon()));
610-
REQUIRE_THAT(
611-
string_to<double>("2.7182818284590"),
612-
WithinAbs(2.7182818284590, std::numeric_limits<double>::epsilon()));
613611

614612
REQUIRE_THROWS_MATCHES(
615613
string_to<float>(" 3.14"), ConversionException,

0 commit comments

Comments
 (0)