Skip to content

Commit d30cbdf

Browse files
committed
another test
Created using spr 1.3.7
1 parent ecee7e1 commit d30cbdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/unittests/Support/GlobPatternTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ TEST_F(GlobPatternTest, Substr) {
374374
ASSERT_TRUE((bool)Pat);
375375
EXPECT_EQ("efg", Pat->longest_substr());
376376

377+
Pat = GlobPattern::create("a*bc[]]efg*h");
378+
ASSERT_TRUE((bool)Pat);
379+
EXPECT_EQ("efg", Pat->longest_substr());
380+
377381
Pat = GlobPattern::create("a*bcde\\fg*h");
378382
ASSERT_TRUE((bool)Pat);
379383
EXPECT_EQ("bcde", Pat->longest_substr());

0 commit comments

Comments
 (0)