aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
Diffstat (limited to 'test/common')
-rw-r--r--test/common/str.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/common/str.h b/test/common/str.h
index 783ed53c48..3c69d1792c 100644
--- a/test/common/str.h
+++ b/test/common/str.h
@@ -335,6 +335,10 @@ class StringTestSuite : public CxxTest::TestSuite
TS_ASSERT(Common::matchString("monkey.s01", "monkey.s##"));
TS_ASSERT(!Common::matchString("monkey.s01", "monkey.###"));
+ TS_ASSERT(Common::matchString("monkey.s0#", "monkey.s0\\#"));
+ TS_ASSERT(!Common::matchString("monkey.s0#", "monkey.s0#"));
+ TS_ASSERT(!Common::matchString("monkey.s01", "monkey.s0\\#"));
+
TS_ASSERT(!Common::String("").matchString("*_"));
TS_ASSERT(Common::String("a").matchString("a***"));
}