From 9e5f1787d023130811761f44a408ba669ae4a9f4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 15 Oct 2010 00:50:12 -0400 Subject: [PATCH] Bug - Fixed erroneous unit test that considered '/a/b/x' a valid substitution, which is false because of the 'x'. --- src/tests/subst.t.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/subst.t.cpp b/src/tests/subst.t.cpp index ca1dccbe7..a5881c9d3 100644 --- a/src/tests/subst.t.cpp +++ b/src/tests/subst.t.cpp @@ -34,7 +34,7 @@ Context context; //////////////////////////////////////////////////////////////////////////////// int main (int argc, char** argv) { - UnitTest t (19); + UnitTest t (18); Task task; task.set ("description", "one two three four"); @@ -42,7 +42,6 @@ int main (int argc, char** argv) context.config.set ("search.case.sensitive", "yes"); Subst s; - t.ok (s.valid ("/a/b/x"), "valid /a/b/x"); t.ok (s.valid ("/a/b/"), "valid /a/b/"); t.ok (s.valid ("/two/TWO/"), "valid /two/TWO/"); t.ok (s.valid ("/e /E /g"), "valid /e /E /g");