mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit Test
- Fix the purpose of the test for bug #1006: checking that completion is active when necessary.
This commit is contained in:
parent
19b01131ce
commit
573e0b2a65
1 changed files with 4 additions and 2 deletions
|
@ -43,13 +43,15 @@ if (open my $fh, '>', 'bug.rc')
|
|||
# This is because DOM elements are checked before standard words when strings
|
||||
# are tokenized.
|
||||
|
||||
# Check that the completion is inactive in task descriptions
|
||||
qx{../src/task rc:bug.rc add des 2>&1};
|
||||
qx{../src/task rc:bug.rc 1 annotate des 2>&1};
|
||||
my $output = qx{../src/task rc:bug.rc 1 info 2>&1};
|
||||
unlike ($output, qr/description/ms, 'Attribute not completed in description');
|
||||
|
||||
$output = qx{../src/task test rc:bug.rc rc.report.test.columns:description rc.report.test.labels:__ 2>&1};
|
||||
like ($output, qr/__/ms, 'Custom column present in the output');
|
||||
# Check that the completion works when needed
|
||||
$output = qx{../src/task rc:bug.rc des:des 2>&1};
|
||||
unlike ($output, qr/No matches./ms, 'Task found using its description');
|
||||
|
||||
$output = qx{../src/task rc:bug.rc add entrée interdite 2>&1};
|
||||
$output = qx{../src/task rc:bug.rc list interdite 2>&1};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue