diff options
author | Johannes Schickel | 2016-01-26 02:20:52 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-26 16:35:30 +0100 |
commit | 06641f29a7bdcda280b0291f215193f055c83969 (patch) | |
tree | 3ccd88990da40fa4c0a073e8311806bc863c4d39 /test/common | |
parent | 6e95d092f5a8c313d51079b5107ebfab0ce78552 (diff) | |
download | scummvm-rg350-06641f29a7bdcda280b0291f215193f055c83969.tar.gz scummvm-rg350-06641f29a7bdcda280b0291f215193f055c83969.tar.bz2 scummvm-rg350-06641f29a7bdcda280b0291f215193f055c83969.zip |
COMMON: Allow '#' to only match digits in matchString.
Diffstat (limited to 'test/common')
-rw-r--r-- | test/common/str.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/common/str.h b/test/common/str.h index adc6a099e4..3ab5d828c1 100644 --- a/test/common/str.h +++ b/test/common/str.h @@ -332,6 +332,9 @@ class StringTestSuite : public CxxTest::TestSuite TS_ASSERT(!Common::matchString("monkey.s99", "monkey.s*1")); TS_ASSERT(Common::matchString("monkey.s101", "monkey.s*1")); + TS_ASSERT(Common::matchString("monkey.s01", "monkey.s##")); + TS_ASSERT(!Common::matchString("monkey.s01", "monkey.###")); + TS_ASSERT(!Common::String("").matchString("*_")); TS_ASSERT(Common::String("a").matchString("a***")); } |