forked from OSchip/llvm-project
Don't assume an implicit error_code -> bool operator.
llvm-svn: 210070
This commit is contained in:
parent
796fba4cd9
commit
f145137516
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue