Bug
- Fixed erroneous unit test that considered '/a/b/x' a valid substitution, which is false because of the 'x'.
This commit is contained in:
@@ -34,7 +34,7 @@ Context context;
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
UnitTest t (19);
|
UnitTest t (18);
|
||||||
|
|
||||||
Task task;
|
Task task;
|
||||||
task.set ("description", "one two three four");
|
task.set ("description", "one two three four");
|
||||||
@@ -42,7 +42,6 @@ int main (int argc, char** argv)
|
|||||||
context.config.set ("search.case.sensitive", "yes");
|
context.config.set ("search.case.sensitive", "yes");
|
||||||
|
|
||||||
Subst s;
|
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 ("/a/b/"), "valid /a/b/");
|
||||||
t.ok (s.valid ("/two/TWO/"), "valid /two/TWO/");
|
t.ok (s.valid ("/two/TWO/"), "valid /two/TWO/");
|
||||||
t.ok (s.valid ("/e /E /g"), "valid /e /E /g");
|
t.ok (s.valid ("/e /E /g"), "valid /e /E /g");
|
||||||
|
|||||||
Reference in New Issue
Block a user