update unittest for compiling ok in mac

This commit is contained in:
wyy 2014-08-15 22:30:52 +08:00
parent e317f25d94
commit 4d686edb7f

View File

@ -73,7 +73,7 @@ TEST(MPSegmentTest, Test2)
string eRes;
{
ifstream ifs("../test/testdata/review.100.res");
ASSERT_TRUE(ifs);
ASSERT_TRUE(!!ifs);
eRes << ifs;
}
string res;
@ -90,7 +90,7 @@ TEST(MPSegmentTest, Test2)
res += '\n';
}
ofstream ofs("../test/testdata/review.100.res");
ASSERT_TRUE(ofs);
ASSERT_TRUE(!!ofs);
ofs << res;
}