src/base/str.test.cc
/**
 * Test that a double cannot be converted to int when it passes the numerical
 * limit.
 */
Test that a double cannot be converted to int when it passes the numerical
limit.
Test that a double cannot be converted to int when it passes the numerical limit .
TEST(StrTest, ToNumber8BitUnsignedOutOfRange)
{
    uint8_t output;
    std::string input = "256.99";
    EXPECT_FALSE(to_number(input, output));
}
TEST ( StrTest , ToNumber8BitUnsignedOutOfRange ) { uint8_t output ; std :: string input = " " ; EXPECT_FALSE ( to_number ( input , output ) ) ; }
Test that a double cannot be converted to int when it passes the numerical
 limit.
Test that a double cannot be converted to int when it passes the numerical limit .