Code Cleanup
- Remove duplicate modify call to TDB2. - Check if quitting in bulk change only if permission fails. - Correct test logic (the unit for each operation is the second, not the day). - Consistency in test for feature.1013.t - Correctly color deleted tasks. test
This commit is contained in:
committed by
Paul Beckingham
parent
39456a3243
commit
160260ff48
@@ -41,7 +41,7 @@ int main (int argc, char** argv)
|
||||
{
|
||||
Date now;
|
||||
Date yesterday;
|
||||
yesterday -= 1;
|
||||
yesterday -= 86400;
|
||||
|
||||
t.ok (yesterday <= now, "yesterday <= now");
|
||||
t.ok (yesterday < now, "yesterday < now");
|
||||
@@ -140,7 +140,7 @@ int main (int argc, char** argv)
|
||||
t.is (happyNewYear.day (), 1, "1/1/2008 == 1");
|
||||
t.is (happyNewYear.year (), 2008, "1/1/2008 == 2008");
|
||||
|
||||
t.is (now - yesterday, 1, "today - yesterday == 1");
|
||||
t.is (now - yesterday, 86400, "today - yesterday == 1");
|
||||
|
||||
t.is (happyNewYear.toString (), "1/1/2008", "toString 1/1/2008");
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ like ($stderr, qr/^Configuration override rc.debug:on$/ms, 'Footnotes are sent t
|
||||
|
||||
# Check that debugs are sent to standard error
|
||||
$stdout = qx{../src/task rc:outerr.rc rc.debug:on list 2> /dev/null};
|
||||
unlike ($stdout, qr/^Perf task /ms, 'Debugs are not sent to stdout');
|
||||
unlike ($stdout, qr/^Timer Config::load \(outerr.rc\) /ms, 'Debugs are not sent to stdout');
|
||||
$stderr = qx{../src/task rc:outerr.rc rc.debug:on list 2>&1 >/dev/null};
|
||||
like ($stderr, qr/^Timer Config::load \(outerr.rc\) /ms, 'Debugs are sent to stderr');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user