32 #include <gtest/gtest.h> 47 EXPECT_EQ( c, 560.0
f );
49 EXPECT_FALSE( !!uss );
64 EXPECT_FALSE( !!uss );
77 EXPECT_EQ( uss.str(),
"1.2" );
80 std::locale new_locale( std::locale::classic(), comma_float_facet );
82 std::locale old_locale = std::locale::global( new_locale );
87 EXPECT_EQ( ss.str(),
"3p4" );
92 EXPECT_EQ( uss2.str(),
"3.4" );
95 std::locale::global( old_locale );
98 int main(
int argc,
char **argv){
99 testing::InitGoogleTest(&argc, argv);
100 return RUN_ALL_TESTS();
virtual char do_decimal_point() const