Don't assume an implicit error_code -> bool operator.

llvm-svn: 210070
This commit is contained in:
Rafael Espindola 2014-06-03 04:40:55 +00:00
parent 796fba4cd9
commit f145137516
1 changed files with 5 additions and 5 deletions

View File

@ -19,14 +19,14 @@ TEST(ParseLineFilter, InvalidFilter) {
EXPECT_FALSE(parseLineFilter("asdf", Options));
EXPECT_TRUE(Options.LineFilter.empty());
EXPECT_TRUE(parseLineFilter("[{}]", Options));
EXPECT_TRUE(parseLineFilter("[{\"name\":\"\"}]", Options));
EXPECT_TRUE(!!parseLineFilter("[{}]", Options));
EXPECT_TRUE(!!parseLineFilter("[{\"name\":\"\"}]", Options));
EXPECT_TRUE(
parseLineFilter("[{\"name\":\"test\",\"lines\":[[1]]}]", Options));
!!parseLineFilter("[{\"name\":\"test\",\"lines\":[[1]]}]", Options));
EXPECT_TRUE(
parseLineFilter("[{\"name\":\"test\",\"lines\":[[1,2,3]]}]", Options));
!!parseLineFilter("[{\"name\":\"test\",\"lines\":[[1,2,3]]}]", Options));
EXPECT_TRUE(
parseLineFilter("[{\"name\":\"test\",\"lines\":[[1,-1]]}]", Options));
!!parseLineFilter("[{\"name\":\"test\",\"lines\":[[1,-1]]}]", Options));
}
TEST(ParseLineFilter, ValidFilter) {