Skip to content

Commit

Permalink
TestMathLib: limit libc++ workaround in toDoubleNumber() to MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Nov 14, 2024
1 parent b8c36b8 commit c8e85ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testmathlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ class TestMathLib : public TestFixture {

ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: invalid");

#ifdef _LIBCPP_VERSION
#if defined(_LIBCPP_VERSION) && (defined(__APPLE__) && defined(__MACH__))
ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("1invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: 1invalid");
ASSERT_THROW_INTERNAL_EQUALS(MathLib::toDoubleNumber("1.1invalid"), INTERNAL, "Internal Error. MathLib::toDoubleNumber: conversion failed: 1.1invalid");
#else
Expand Down

0 comments on commit c8e85ec

Please sign in to comment.