From 532663c742150b341de22a65da4fd761da6f497a Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 7 Sep 2010 11:40:44 +0000 Subject: COMMON: Fix edge case for wildcard in matchString svn-id: r52618 --- 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 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() { -- cgit v1.2.3