src/base/str.test.cc
/** Test that a scientific number is converted properly to double. */
Test that a scientific number is converted properly to double.
Test that a scientific number is converted properly to double .
TEST(StrTest, ToNumberScientific)
{
    double output;
    std::string input = "8.234e+08";
    double expected_output = 823400000;
    EXPECT_TRUE(to_number(input, output));
    EXPECT_EQ(expected_output, output);
}
TEST ( StrTest , ToNumberScientific ) { double output ; std :: string input = " " ; double expected_output = 823400000 ; EXPECT_TRUE ( to_number ( input , output ) ) ; EXPECT_EQ ( expected_output , output ) ; }
Test that a scientific number is converted properly to double.
Test that a scientific number is converted properly to double .