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:
10
test/tag.t
10
test/tag.t
@@ -43,23 +43,23 @@ my $output = qx{../src/task rc:tag.rc add +one This +two is a test +three; ../sr
|
||||
like ($output, qr/^Tags\s+one two three\n/m, 'tags found');
|
||||
|
||||
# Remove tags.
|
||||
$output = qx{../src/task rc:tag.rc 1 -three -two -one; ../src/task rc:tag.rc info 1};
|
||||
$output = qx{../src/task rc:tag.rc 1 modify -three -two -one; ../src/task rc:tag.rc info 1};
|
||||
unlike ($output, qr/^Tags/m, '-three -two -one tag removed');
|
||||
|
||||
# Add tags.
|
||||
$output = qx{../src/task rc:tag.rc 1 +four +five +six; ../src/task rc:tag.rc info 1};
|
||||
$output = qx{../src/task rc:tag.rc 1 modify +four +five +six; ../src/task rc:tag.rc info 1};
|
||||
like ($output, qr/^Tags\s+four five six\n/m, 'tags found');
|
||||
|
||||
# Remove tags.
|
||||
$output = qx{../src/task rc:tag.rc 1 -four -five -six; ../src/task rc:tag.rc info 1};
|
||||
$output = qx{../src/task rc:tag.rc 1 modify -four -five -six; ../src/task rc:tag.rc info 1};
|
||||
unlike ($output, qr/^Tags/m, '-four -five -six tag removed');
|
||||
|
||||
# Add and remove tags.
|
||||
$output = qx{../src/task rc:tag.rc 1 +duplicate -duplicate; ../src/task rc:tag.rc info 1};
|
||||
$output = qx{../src/task rc:tag.rc 1 modify +duplicate -duplicate; ../src/task rc:tag.rc info 1};
|
||||
unlike ($output, qr/^Tags/m, '+duplicate -duplicate NOP');
|
||||
|
||||
# Remove missing tag.
|
||||
$output = qx{../src/task rc:tag.rc 1 -missing; ../src/task rc:tag.rc info 1};
|
||||
$output = qx{../src/task rc:tag.rc 1 modify -missing; ../src/task rc:tag.rc info 1};
|
||||
unlike ($output, qr/^Tags/m, '-missing NOP');
|
||||
|
||||
# Cleanup.
|
||||
|
||||
Reference in New Issue
Block a user