mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
update unittest for compiling ok in mac
This commit is contained in:
parent
e317f25d94
commit
4d686edb7f
@ -73,7 +73,7 @@ TEST(MPSegmentTest, Test2)
|
|||||||
string eRes;
|
string eRes;
|
||||||
{
|
{
|
||||||
ifstream ifs("../test/testdata/review.100.res");
|
ifstream ifs("../test/testdata/review.100.res");
|
||||||
ASSERT_TRUE(ifs);
|
ASSERT_TRUE(!!ifs);
|
||||||
eRes << ifs;
|
eRes << ifs;
|
||||||
}
|
}
|
||||||
string res;
|
string res;
|
||||||
@ -90,7 +90,7 @@ TEST(MPSegmentTest, Test2)
|
|||||||
res += '\n';
|
res += '\n';
|
||||||
}
|
}
|
||||||
ofstream ofs("../test/testdata/review.100.res");
|
ofstream ofs("../test/testdata/review.100.res");
|
||||||
ASSERT_TRUE(ofs);
|
ASSERT_TRUE(!!ofs);
|
||||||
ofs << res;
|
ofs << res;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user