mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
fix random test: explicit conversion iostream to bool
This commit is contained in:
parent
d3c5feff2c
commit
dcf83cc1d7
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue