aboutsummaryrefslogtreecommitdiff
path: root/test/common
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2010-09-07 11:40:44 +0000
committerWillem Jan Palenstijn2010-09-07 11:40:44 +0000
commit532663c742150b341de22a65da4fd761da6f497a (patch)
tree5f3eb2a7375938be9de8191893fcedb09ece1b18 /test/common
parent0e80aa708802eb38e45820cbf0efaf6b7c1581fe (diff)
downloadscummvm-rg350-532663c742150b341de22a65da4fd761da6f497a.tar.gz
scummvm-rg350-532663c742150b341de22a65da4fd761da6f497a.tar.bz2
scummvm-rg350-532663c742150b341de22a65da4fd761da6f497a.zip
COMMON: Fix edge case for wildcard in matchString
svn-id: r52618
Diffstat (limited to 'test/common')
-rw-r--r--test/common/str.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common/str.h b/test/common/str.h
index e1f2b39578..0dd075f848 100644
--- a/test/common/str.h
+++ b/test/common/str.h
@@ -310,6 +310,9 @@ class StringTestSuite : public CxxTest::TestSuite
TS_ASSERT(Common::matchString("monkey.s01", "monkey.s*1"));
TS_ASSERT(!Common::matchString("monkey.s99", "monkey.s*1"));
TS_ASSERT(Common::matchString("monkey.s101", "monkey.s*1"));
+
+ TS_ASSERT(!Common::String("").matchString("*_"));
+ TS_ASSERT(Common::String("a").matchString("a***"));
}
void test_string_printf() {