mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added _tags tests
This commit is contained in:
parent
05359735ff
commit
130f98175a
1 changed files with 9 additions and 1 deletions
10
test/tag.t
10
test/tag.t
|
@ -27,7 +27,7 @@
|
|||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 33;
|
||||
use Test::More tests => 39;
|
||||
|
||||
# Ensure environment has no influence.
|
||||
delete $ENV{'TASKDATA'};
|
||||
|
@ -150,6 +150,14 @@ qx{../src/task rc:$rc add seven tags:A,A,B,C,C,C};
|
|||
$output = qx{../src/task rc:$rc /seven/ list};
|
||||
like ($output, qr/ A B C /, 'Direct tags setting enforces uniqueness');
|
||||
|
||||
$output = qx{../src/task rc:$rc _tags};
|
||||
like ($output, qr/PENDING/, '_tags contains PENDING');
|
||||
like ($output, qr/next/, '_tags contains next');
|
||||
like ($output, qr/nocal/, '_tags contains nocal');
|
||||
like ($output, qr/nocolor/, '_tags contains nocolor');
|
||||
like ($output, qr/nonag/, '_tags contains nonag');
|
||||
like ($output, qr/tag/, '_tags contains tag');
|
||||
|
||||
# Cleanup.
|
||||
unlink qw(pending.data completed.data undo.data backlog.data), $rc;
|
||||
exit 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue