forked from OSchip/llvm-project
[lldb/Test] Add unittest for FileSpec::operator bool()
This commit is contained in:
parent
f951b0f82d
commit
14970669dd
|
@ -441,3 +441,9 @@ TEST(FileSpecTest, Yaml) {
|
|||
EXPECT_EQ(deserialized.GetDirectory(), fs_windows.GetDirectory());
|
||||
EXPECT_EQ(deserialized, fs_windows);
|
||||
}
|
||||
|
||||
TEST(FileSpecTest, OperatorBool) {
|
||||
EXPECT_FALSE(FileSpec());
|
||||
EXPECT_FALSE(FileSpec(""));
|
||||
EXPECT_TRUE(FileSpec("/foo/bar"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue