mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Tests
- Corrected all unit tests that used the old syntax "task done 1" to use the new syntax "task 1 done". Similarly, "task 1 ..." is now "task 1 modify ...".
This commit is contained in:
parent
9ce7f63d85
commit
ac7bcc81ee
48 changed files with 177 additions and 177 deletions
|
@ -45,43 +45,43 @@ my $output;
|
|||
|
||||
# Description substitution.
|
||||
# 2
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 /One/ONE/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 modify /One/ONE/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
unlike ($output, qr/One two three/, 'one two three\nfour five six -> /One/ONE/ = fail');
|
||||
|
||||
# 3
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 /One/ONE/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 modify /One/ONE/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
like ($output, qr/ONE two three/, 'one two three\nfour five six -> /One/ONE/ = caseless succeed');
|
||||
|
||||
# 4
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 /one/One/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 modify /one/One/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
unlike ($output, qr/One two three/, 'ONE two three\nfour five six -> /one/ONE/ = fail');
|
||||
|
||||
# 5
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 /one/one/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 modify /one/one/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
like ($output, qr/one two three/, 'ONE two three\nfour five six -> /one/one/ = caseless succeed');
|
||||
|
||||
# Annotation substitution.
|
||||
# 6
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 /Five/FIVE/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 modify /Five/FIVE/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
unlike ($output, qr/four FIVE six/, 'one two three\nfour five six -> /Five/FIVE/ = fail');
|
||||
|
||||
# 7
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 /Five/FIVE/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 modify /Five/FIVE/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
like ($output, qr/four FIVE six/, 'one two three\nfour five six -> /Five/FIVE/ = caseless succeed');
|
||||
|
||||
# 8
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 /five/Five/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:yes 1 modify /five/Five/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
unlike ($output, qr/four Five six/, 'one two three\nfour FIVE six -> /five/Five/ = fail');
|
||||
|
||||
# 9
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 /five/five/};
|
||||
qx{../src/task rc:caseless.rc rc.search.case.sensitive:no 1 modify /five/five/};
|
||||
$output = qx{../src/task rc:caseless.rc info 1};
|
||||
like ($output, qr/four five six/, 'one two three\nfour FIVE six -> /five/five/ = caseless succeed');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue