From 819d15b2a101b03ceb1561d2a447a1e4a100038e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 31 Aug 2014 13:24:38 -0400 Subject: [PATCH] Unit Tests - Not enough backslashes in the unit test, and taskwarrior will need to add an extra decode on Task::set and Task::addAnnotaiton. --- test/bug.879.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bug.879.t b/test/bug.879.t index 88c167801..a1e229b31 100755 --- a/test/bug.879.t +++ b/test/bug.879.t @@ -45,11 +45,11 @@ if (open my $fh, '>', $rc) } # 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}; 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}; like ($output, qr/one\\/, "$ut: Backslash preserved in description"); like ($output, qr/foo\\/, "$ut: Backslash preserved in annotation 1");