mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Unit Tests
- Reduced complexity in the test.
This commit is contained in:
parent
5396c718ef
commit
ceabcdd6c3
1 changed files with 2 additions and 6 deletions
|
@ -40,15 +40,11 @@ if (open my $fh, '>', 'bug.rc')
|
|||
|
||||
# Bug 819: When I run "task add foo\'s bar." the description of the new task is "foo 's bar .".
|
||||
qx{../src/task rc:bug.rc add foo\\'s bar.};
|
||||
qx{../src/task rc:bug.rc add foo \\(bar\\)};
|
||||
qx{../src/task rc:bug.rc add \\'baz \\(qux\\)\\'};
|
||||
my $output = qx{../src/task rc:bug.rc ls};
|
||||
like ($output, qr/foo's bar\./, "foo's bar. --> preserved");
|
||||
|
||||
qx{../src/task rc:bug.rc add foo \\(bar\\)};
|
||||
$output = qx{../src/task rc:bug.rc ls};
|
||||
like ($output, qr/foo \(bar\)/, "foo \(bar\) -- preserved");
|
||||
|
||||
qx{../src/task rc:bug.rc add \\'baz \\(qux\\)\\'};
|
||||
$output = qx{../src/task rc:bug.rc ls};
|
||||
like ($output, qr/baz \(qux\)/, "baz \(qux\) -- preserved");
|
||||
|
||||
# Cleanup.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue