- Fixed bug #835, which prevented hierarchical projects from being recognized.
This commit is contained in:
Paul Beckingham 2011-09-21 00:19:42 -04:00
parent 965e15fe91
commit e478f6626b
4 changed files with 10 additions and 7 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 3;
use Test::More tests => 5;
# Create the rc file.
if (open my $fh, '>', 'bug.rc')
@ -42,6 +42,10 @@ qx{../src/task rc:bug.rc add pro:main.subproject Test};
my $output = qx{../src/task rc:bug.rc ls};
like ($output, qr/main\.subproject/, "hierarchical project ok");
qx{../src/task rc:bug.rc \\(pro:main.subproject\\) ls};
like ($output, qr/main\.subproject/, "Parens tolerated");
unlike ($output, qr/Mismatched parentheses in expression/, "No 'mismatch' error generated");
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data synch.key bug.rc);
ok (! -r 'pending.data' &&