mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Not enough backslashes in the unit test, and taskwarrior will need to add an extra decode on Task::set and Task::addAnnotaiton.
This commit is contained in:
parent
0f3a8073f0
commit
819d15b2a1
1 changed files with 2 additions and 2 deletions
|
@ -45,11 +45,11 @@ if (open my $fh, '>', $rc)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Bug 879: Backslash at end of description/annotation causes problems.
|
# Bug 879: Backslash at end of description/annotation causes problems.
|
||||||
qx{../src/task rc:$rc add one\\\\ 2>&1};
|
qx{../src/task rc:$rc add one\\\\\\\\ 2>&1};
|
||||||
my $output = qx{../src/task rc:$rc long 2>&1};
|
my $output = qx{../src/task rc:$rc long 2>&1};
|
||||||
like ($output, qr/one\\/, "$ut: Backslash preserved in description");
|
like ($output, qr/one\\/, "$ut: Backslash preserved in description");
|
||||||
|
|
||||||
qx{../src/task rc:$rc 1 annotate foo\\\\ 2>&1};
|
qx{../src/task rc:$rc 1 annotate foo\\\\\\\\ 2>&1};
|
||||||
$output = qx{../src/task rc:$rc long 2>&1};
|
$output = qx{../src/task rc:$rc long 2>&1};
|
||||||
like ($output, qr/one\\/, "$ut: Backslash preserved in description");
|
like ($output, qr/one\\/, "$ut: Backslash preserved in description");
|
||||||
like ($output, qr/foo\\/, "$ut: Backslash preserved in annotation 1");
|
like ($output, qr/foo\\/, "$ut: Backslash preserved in annotation 1");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue