Source/platform/DecimalTest.cpp
// fromString doesn't support infinity and NaN.
fromString doesn't support infinity and NaN.
fromString doesn ' t support infinity and NaN .
TEST_F(DecimalTest, FromStringSpecialValues)
{
    EXPECT_EQ(Decimal::nan(), fromString("INF"));
    EXPECT_EQ(Decimal::nan(), fromString("Infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("+Infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("+infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("-Infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("-infinity"));
    EXPECT_EQ(Decimal::nan(), fromString("NaN"));
    EXPECT_EQ(Decimal::nan(), fromString("nan"));
    EXPECT_EQ(Decimal::nan(), fromString("+NaN"));
    EXPECT_EQ(Decimal::nan(), fromString("+nan"));
    EXPECT_EQ(Decimal::nan(), fromString("-NaN"));
    EXPECT_EQ(Decimal::nan(), fromString("-nan"));
}
TEST_F ( DecimalTest , FromStringSpecialValues ) { EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; EXPECT_EQ ( Decimal :: nan ( ) , fromString ( " " ) ) ; }
fromString doesn't support infinity and NaN.
fromString doesn ' t support infinity and NaN .