fix random test: explicit conversion iostream to bool

This commit is contained in:
bolero-MURAKAMI 2013-10-02 15:44:33 +09:00
parent d3c5feff2c
commit dcf83cc1d7
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ namespace testspr {
{
std::ostringstream os;
os << dist1;
TESTSPR_ASSERT(os);
TESTSPR_ASSERT(!!os);
s = os.str();
}
@ -52,7 +52,7 @@ namespace testspr {
{
std::istringstream is(s);
is >> dist_temp;
TESTSPR_ASSERT(is);
TESTSPR_ASSERT(!!is);
}
TESTSPR_ASSERT(dist_temp == dist1);

View file

@ -32,7 +32,7 @@ namespace testspr {
{
std::ostringstream os;
os << eng1;
TESTSPR_ASSERT(os);
TESTSPR_ASSERT(!!os);
s = os.str();
}
@ -43,7 +43,7 @@ namespace testspr {
{
std::istringstream is(s);
is >> eng_temp;
TESTSPR_ASSERT(is);
TESTSPR_ASSERT(!!is);
}
//TESTSPR_ASSERT(eng_temp == eng1);