From 06641f29a7bdcda280b0291f215193f055c83969 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 26 Jan 2016 02:20:52 +0100 Subject: COMMON: Allow '#' to only match digits in matchString. --- test/common/str.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/common') 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***")); } -- cgit v1.2.3