my function
TEST(XBASIC, strtod) {
double d = 0;
d = strtod( "+123.4", NULL );
EXPECT_TRUE( errno == 0 );
EXPECT_EQ( 123.4, d );
d = strtod( "a+123.4", NULL );
RecordProperty( "errno", errno );
EXPECT_TRUE( errno != 0 );
}
output:
[ RUN ] XBASIC.strtod
xbasic_gtest.cc:91: Failure
Value of: errno != 0
Actual: false
Expected: true
[ FAILED ] XBASIC.strtod (0 ms)
[----------] 7 tests from XBASIC (1 ms total)
[----------] Global test environment tear-down
[==========] 7 tests from 1 test case ran. (1 ms total)
[ PASSED ] 6 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] XBASIC.strtod
1 FAILED TEST
-----------
see: There is no info show by RecordProperty;
Original issue reported on code.google.com by xueyunlong@gmail.com on 2 Feb 2010 at 11:32
Original issue reported on code.google.com by
xueyunlong@gmail.com
on 2 Feb 2010 at 11:32