Unit Tests

- Re-enabled bug.982.t and fixed the regex so it is right. This test was created
  for a parsing bug which is now fixed.
This commit is contained in:
Paul Beckingham 2015-01-04 10:40:21 -05:00
parent 1cac14f3f8
commit d1664b3f55

View file

@ -46,10 +46,9 @@ if (open my $fh, '>', $rc)
}
# Bug 982: Missing words when adding a description with NUMBER-SOMETHING
qx{../src/task rc:$rc add 1-test 1+tag 2>&1};
my $output = qx{../src/task rc:$rc 1 info 2>&1};
like ($output, qr/^Description 1-test 1\+tag$/ms, 'Description contains plus and minus signs');
like ($output, qr/^Description\s+1-test 1\+tag$/ms, "$ut: Description contains plus and minus signs");
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data), $rc;