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:
Paul Beckingham
2011-07-31 19:03:19 -04:00
parent 9ce7f63d85
commit ac7bcc81ee
48 changed files with 177 additions and 177 deletions

View File

@@ -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.