Paul Beckingham
abcec98bef
Unit Tests - fontunderline
...
- Implemented unit tests to verify the interaction between fontunderline,
color, _forcecolor and :isatty.
2009-07-04 12:22:02 -04:00
Paul Beckingham
a6e9e6cdfb
Unit Tests - rc
...
- Now tests whether the default rc and data.location are created
from scratch.
2009-07-03 23:51:13 -04:00
Federico Hernandez
03c9cc6005
Fixed bug in single digit day highliting unit test
2009-07-03 14:34:58 +02:00
Paul Beckingham
ef7c5dc4eb
Unit Tests
...
- The unit tests needed a little love after "undelete" went away, and
"undo" changed.
- Fixed a few tests that were broken.
2009-07-03 00:51:25 -04:00
Paul Beckingham
b692ae3b25
Unit Tests
...
- Added unit tests to ensure that UUIDs are unique, using the three
different ways of generating them (add, duplicate, recurring).
2009-07-02 09:09:29 -04:00
Paul Beckingham
b7a0883212
Unit Tests - Task::validate
...
- Implemented first (of many) Task::validate tests.
2009-06-30 23:57:27 -04:00
Paul Beckingham
dc2bac1b5e
Unit Tests
...
- All unit tests most now clean up a residual undo.data file, so the
number of tests increased, but with no benefit.
2009-06-28 17:07:25 -04:00
Paul Beckingham
ce4f26bdf3
Unit Tests
...
- Fixed a series of bugs to improve the test suite results.
2009-06-28 01:04:23 -04:00
Paul Beckingham
1f3092469e
Code Cleanup
...
- Eliminated valid.cpp by relocating functions to more sensible locations.
2009-06-27 20:49:28 -04:00
Paul Beckingham
52052f91f9
Bug Fix - formatBytes
...
- Corrected code and tests regarding floating point rounding.
2009-06-27 20:39:33 -04:00
Paul Beckingham
6e4f60c4fe
Enhancement - confirmation on big changes
...
- Implemented confirmation on big changes. That means if the description is
changed, or more than 2 tasks are modified in a single command.
- Implemented taskDiff to detect differences between two tasks.
- Implemented taskDifferences to describe differences between two tasks.
2009-06-27 17:09:29 -04:00
Paul Beckingham
518aea870f
Enhancement - Permission
...
- Implemented new Permission object to manage tri-state confirmation
of changes to multiple tasks.
2009-06-27 10:07:00 -04:00
Paul Beckingham
6d3df6922b
Unit Tests - Att
...
- Added unit tests to verify functionality of Att::type,
Att::validInternalName and Att::validModifiableName.
2009-06-27 10:04:38 -04:00
Federico Hernandez
9aed6ec228
Unit tests for new 'task cal' functionality
2009-06-27 02:02:48 +02:00
Paul Beckingham
bb78f61d2a
Unit Tests
...
- Fixed obsolete test in basic.t
2009-06-26 00:31:30 -04:00
Paul Beckingham
1cfe879409
Enhancement - Task::operator==
...
- Implemented Task::operator==.
- Implemented unit tests.
2009-06-25 17:08:39 -04:00
Paul Beckingham
a56eeb9ec2
Enhancements - task diff
...
- Implemented util.cpp/taskDiff to generate a proxy description of the
difference between two tasks.
- Implemented unit tests for taskDiff.
2009-06-25 16:58:58 -04:00
Paul Beckingham
a32263e7ea
Enhancement - next
...
- The next report is now a custom report. There is also a nasty
piece of logic that lets the next report exist as a custom report,
and also with it's own handleReportNext function to prep and filter
the tasks, then hand off to runCustomReport.
2009-06-25 00:47:07 -04:00
Federico Hernandez
b31cc639a4
Fixed bug due to incompatible 'date' commands on OS X and Linux
...
to display runtime of all unit tests
2009-06-23 10:49:55 +02:00
Paul Beckingham
f7c91d6db7
Unit Tests
...
- Fixed a series of broken tests.
2009-06-23 01:54:16 -04:00
Paul Beckingham
f7d40e8d8d
Unit Tests
...
- Fixed unit test build problem.
2009-06-23 01:32:24 -04:00
Federico Hernandez
a4f9493ce7
Added output of runtime
2009-06-22 09:19:10 +02:00
Paul Beckingham
40bde9e765
Enhancement - shadow files
...
- Properly clears out the context, so shadow files can work.
2009-06-21 15:37:36 -04:00
Federico Hernandez
93a68361a7
Changed dates for epoch conversion due to TZ variations
2009-06-20 23:03:06 +02:00
Paul Beckingham
dcb4ae5497
Bug Fix - durations
...
- Fixed bug where durations (recur:x) were not properly parsed and
validated.
- Fixed bug where the list output was being improperly parsed.
2009-06-19 00:52:48 -04:00
Paul Beckingham
20bd2cf594
Unit Tests - oldest, tag
...
- Fixed oldest.t unit tests that relied on "task oldest 3" instead of
the new "task oldest limit:3".
- Fixed tag.t so that it uses example tags +one +two instead of the
original +1 +2, because when it comes time to remove those tags
with -1 -2, the tags are interpreted as a malformed sequence.
2009-06-18 23:23:07 -04:00
Paul Beckingham
3ffb855956
Bug Fixes - Att, Subst
...
- Fixed but that required all known attributes to be listed by name
in order to be recognized by creating new Att::validInternalName
method.
- Fixed bug in non-global Subst that failed to save a modified
annotation.
2009-06-18 23:14:26 -04:00
Paul Beckingham
cea84b3d3b
Bug Fix - export
...
- Fixed export bug that was emitting quoted blank strings, instead of
blank strings.
- Fixed undo.t unit tests.
2009-06-18 22:52:27 -04:00
Paul Beckingham
9c2e70b73a
Bug Fixes, Unit Tests
...
- Fixed bug where "foo:bar" was not recognized as an attribute, and
generated an error rather than demoting is to part of the description.
- Fixed bug where en-passant deltas were applied only to the first task
in a sequence.
- Fixed various unit test.
2009-06-18 22:01:43 -04:00
Federico Hernandez
8cf7888fd5
* Wrong unit test and algorithm for leapyears (year 1900)
2009-06-18 09:18:13 +02:00
Federico Hernandez
0ae76d3bf2
Fixed include statement for Linux
2009-06-18 09:11:59 +02:00
Paul Beckingham
61cedc3ad1
Enhancement - import command
...
- Implemented import command
- Implemented Context::clearMessages to remove all accumulated
messages. This is needed because parts of the import process are
recursive and we don't want Context to dump messages for every
import record on completion.
2009-06-17 00:59:31 -04:00
Paul Beckingham
7a77cd6d4a
Unit Tests - export.t
...
- Corrected export unit test to account for the new syntax of the export
command, which no longer accepts a file name argument, and send the report to
stdout instead.
2009-06-16 16:34:46 -04:00
Paul Beckingham
7a2c40626e
Unit tests - add.t
...
- Reduced verbiage in tests.
2009-06-16 12:51:13 -04:00
Paul Beckingham
6e6f86783f
Unit Tests - rc override
...
- Unit tests to make sure rc.name:value is working.
2009-06-15 21:10:57 -04:00
Paul Beckingham
3d9ec60153
Unit Tests - tdb.t
...
- Now cleans up it's temporary files.
2009-06-15 00:54:25 -04:00
Paul Beckingham
7ff178cecc
Integration - TDB write operations
...
- TDB::gc rewritten.
- TDB::commit fixed.
- Corrected usage of handleRecurringTasks wrt TDB.
- Unit tests for TDB.
2009-06-15 00:52:24 -04:00
Paul Beckingham
80bb9f0a18
Integration - TDB
...
- Renamed TDB2 to TDB.
- Integration of new code complete.
2009-06-14 18:19:00 -04:00
Paul Beckingham
c89a222c7c
Integration - removing T
...
- Removed linkage to T.o in unit tests. The first step towards
eliminating T.cpp.
2009-06-13 18:53:01 -04:00
Paul Beckingham
841958d889
Unit Tests - decommission t.t.cpp
...
- Eliminated obsolete t.t.cpp.
2009-06-13 17:59:54 -04:00
Paul Beckingham
25d27bec93
Integration - attribute validation
...
- Implemented digitsOnly primitive.
- Implemented noSpaces primitive.
- Added unit tests for above.
- Att now manages the lists of valid attributes and modifier names.
- validName migrated to Att.
- validModifiableName migrated to Att.
- New Att::validNameValue.
- Removed obsolete validDescription.
- Removed obsolete validPriority.
- Removed obsolete valid.cpp/guess.
- Implemented text.cpp/noVerticalSpace.
- Added unit tests for text.cpp/noVerticalSpace.
- Removed final static lists from valid.cpp.
2009-06-13 16:27:13 -04:00
Paul Beckingham
0665caae55
Enhancements - date
...
- Relocated valid.cpp/dataValid to Date::valid.
- Added new unit tests in date.t.cpp.
2009-06-13 12:51:51 -04:00
Paul Beckingham
c9807f4636
Unit Tests - parse
...
- Eliminated parse.t.
- Fixed t.t.cpp tests.
2009-06-12 21:34:42 -04:00
Paul Beckingham
6ac8bdc5ca
Enhancements - modifier cleanup
...
- Removed obsolete modifiers
- Added above/below
2009-06-12 21:23:15 -04:00
Paul Beckingham
bd0309b4ff
Enhancements - modifiers
...
- Now only allows one modifier.
- Removed "not", "synth", "next", "first", "last" modifiers.
- Modified match logic.
2009-06-12 21:11:33 -04:00
Paul Beckingham
0b14efbb76
Enhancements - validation
...
- Implemented Cmd::isReadOnlyCommand.
- Implemented Cmd::isWriteCommand.
- Added unit tests for above.
2009-06-12 01:45:42 -04:00
Paul Beckingham
37e08df8ba
Enhancements - TDB2::gc
...
- Stubbed TDB2::gc.
- Fixed broken tests Makefile
- Added handleCustomReport call to Context dispatch.
2009-06-11 21:17:30 -04:00
Paul Beckingham
754b79afb2
Enhancement - Record::has
...
- Implemented Record::has which guarantees no autovivification of
attributes.
2009-06-11 20:29:53 -04:00
Paul Beckingham
1cac0d6647
Bug Fix - FF4 newline
...
- Oops - FF4 did not include a newline at EOL.
2009-06-11 02:00:05 -04:00
Paul Beckingham
9776495286
Code Cleanup - TDB removal
...
- TDB removed from all code, but source kept for further reference.
2009-06-10 22:54:56 -04:00