Commit graph

831 commits

Author SHA1 Message Date
Paul Beckingham
7598997e70 Lexer
- Implemented ::token_split, which performs a full lex, and doesn't require
  white space like ::word_split does.
- Added unit tests.
2014-05-31 13:51:10 -04:00
Paul Beckingham
0af9bbdc03 Lexer
- Renamed ::split to ::word_split, for clarity and because of the need for a
  full token split, coming next.
2014-05-31 13:48:52 -04:00
Paul Beckingham
744f0f55ac Unit Tests
- Removed obsolete references to 'synch.key'.
2014-05-31 11:53:17 -04:00
Paul Beckingham
6514bdfc4d TW-28, TW-271, TW-277, TW-752, TW-1265
- TW-1265 cannot add UDA with underscore (thanks to Jakub Wilk).
- Added unit tests for TW-1265.
- Added ChangeLog and AUTHOR entries for other fixed issues.
2014-05-31 11:11:53 -04:00
Paul Beckingham
6ccca32434 Unit Tests
- Downgraded bash constructs to sh, reducing the requirements from bash to sh.
2014-05-30 21:39:55 -04:00
Paul Beckingham
f2a8e22866 Unit Tests
- Uses full duration names '9months' rather than abbreviations '9mo'.
  This is in anticipation of reduced flexibility.
2014-05-30 18:13:33 -04:00
Paul Beckingham
da95c16da9 Unit Tests
- Modified a test that relies on an obsolete message.
2014-05-29 23:17:02 -04:00
Paul Beckingham
f585f31d69 OldDuration
- Removed obsolete OldDuration object, replaced by Duration.
2014-05-28 23:59:16 -04:00
Paul Beckingham
117ade1609 Duration
- Duration inherits all of OldDuration's formatting capabilities.
- ::formatISO adds support for ISO8601 desginated period type.
2014-05-28 23:28:56 -04:00
Paul Beckingham
965284875c Duration
- Migrated methods and unit tests from OldDuration to Duration.
2014-05-28 22:41:29 -04:00
Paul Beckingham
dead140c74 Code Cleanup
- Removed unnecessary includes.
- Added comment for Date integration.
2014-05-28 21:03:03 -04:00
Paul Beckingham
84b95ce06d Unit Tests
- Corrected assumptions in a unit test about the circumstances of file creation.
2014-05-27 16:14:32 -04:00
Paul Beckingham
c5cf4de4a0 Parser
- Multiple -- terminators are considered to be a single terminator followed
  by words that are not terminators. There can be only one!
2014-05-27 15:50:59 -04:00
Paul Beckingham
7f56187748 Variant
- The partial match operator now expects length(left) > length(right).
2014-05-27 15:33:58 -04:00
Paul Beckingham
4ff9550580 Unit Tests
- Removed unnecessary quotes.
2014-05-27 00:45:28 -04:00
Paul Beckingham
3c72e87d70 Unit Tests
- Made tests explicit about search terms.
2014-05-27 00:08:33 -04:00
Paul Beckingham
0b160292c0 Variant
- Implemented partial match for strings.
2014-05-27 00:08:07 -04:00
Paul Beckingham
0664cb5689 Unit Tests
- Updated tests to be explicit about plain args being search terms.
2014-05-26 23:44:09 -04:00
Paul Beckingham
c342159369 Unit Tests
- calc.t was not up to date regarding the form of the diagnostic output.
2014-05-26 13:22:51 -04:00
Paul Beckingham
79abddd03d Parser
- Renamed A3t to Parser.
2014-05-25 09:44:22 -04:00
Paul Beckingham
051a92bf91 Unit Tests
- Test was not setting proper verbosity level.
2014-05-24 14:29:09 -04:00
Paul Beckingham
7558527823 Unit Tests
- Test was looking for 'one', and found a false positive of 'none'.
2014-05-24 14:26:07 -04:00
Paul Beckingham
856e777004 Unit Tests
- Test was not specifying correct verbosity for the tests.
2014-05-24 14:23:23 -04:00
Paul Beckingham
4851e0ed2b Unit Tests
- Added TW-1267 unit tests (thank to Renato Alves).
2014-05-24 11:10:28 -04:00
Paul Beckingham
f4fc65e1ed Unit Tests
- Added DOM id --> UUID --> id round trip tests.
2014-05-24 11:04:32 -04:00
Paul Beckingham
704e85fcbc TD-57
- TD-57 taskdctl script assumes /bin/sh is /bin/bash (thanks to Tatjana Heuser).
2014-05-23 16:34:08 -04:00
Paul Beckingham
5893bfede5 Revert "Unit Tests"
This reverts commit 93a241417e.
2014-05-22 22:48:31 -04:00
Paul Beckingham
93a241417e Unit Tests
- Removed tests that are no longer relevant, and fail.
2014-05-22 16:14:05 -04:00
Paul Beckingham
c9f6a4b9df Unit Tests
- Added Variant::operator_partial unit tests, based initially on
  ::operator==.
2014-05-19 20:15:32 -04:00
Renato Alves
08c11da702 Testing
Expose location of taskd.log and taskd.pid
2014-05-17 22:05:30 +01:00
Renato Alves
29d5de1154 Testing
Add a class to manage one or more taskd servers running on the same
machine.
2014-05-17 21:44:51 +01:00
Renato Alves
1d85416692 Testing certificates
Add certificates for use with taskd and task
2014-05-17 21:44:51 +01:00
Renato Alves
f54494d45a Unittesting basemodule
merge_streams was not having the desired effect
2014-05-17 21:44:51 +01:00
Paul Beckingham
4357f9c545 Unit Tests
- hyphenate.t was maing assumptions about report output that can be reduced.
2014-05-11 15:05:56 -04:00
Paul Beckingham
980ab680f3 Unit Tests
- Calendar command needs to be explicit (because calendar/calc share the first
  three letters).
2014-05-11 14:33:49 -04:00
Paul Beckingham
07a1f9d6b5 Unit Tests
- Added tests for Tree::countTags.
2014-05-06 21:17:09 -04:00
Paul Beckingham
6cd6910968 Unit Test
- Modified rc.t to use the lightweight _version command, instead of invoking
  all the default command machinery, for a simple rc creation.
2014-04-24 13:04:28 -04:00
Paul Beckingham
b01906cd62 Unit tests
- New command line parser is live for DOM access and DOM testing.
2014-04-24 12:00:50 -04:00
Paul Beckingham
d99f40eaad Code Cleanup
- Removed obsolete text.cpp splitq funciton, which is superceded by
  Lexer::split.
2014-04-24 09:35:02 -04:00
Paul Beckingham
8a5d7bb569 Unit Tests
- Added more Lexer::split tests.
2014-04-24 09:08:19 -04:00
Paul Beckingham
386bcea60e Text
- Removed splitq function and tests, migrated code over to the new
  Lexer::split.
2014-04-23 23:20:56 -04:00
Paul Beckingham
611812007a Lexer
- Implemented Lexer::word, which is just like ::token, but does not
  understand dates, durations or operators.
- Implemented Lexer::split, which uses Lexer::word.
- Added unit tests.
2014-04-23 23:19:41 -04:00
Paul Beckingham
d099a4edfd Text Handling
- Migrated the splitq implementation over to the Lexer. Now it handles all
  Unicode spaces.  Jsut need to obsolete the old version.
2014-04-23 17:34:07 -04:00
Renato Alves
13d7961813 Refactor some tests to avoid redoing setUp/tearDown once per test 2014-04-13 20:12:55 +01:00
Renato Alves
2e64231886 Refactor testing framework to allow using callTask* methods inside @classmethods 2014-04-13 20:11:28 +01:00
Renato Alves
be59e526f1 Rename method to match the current testing API 2014-04-13 19:51:00 +01:00
Renato Alves
e0a39b0bc3 Merging in latest from upstream (TM/task:refs/heads/2.4.0)
* commit '75f938463e':
  TW-285
2014-04-13 18:45:56 +00:00
Paul Beckingham
75f938463e TW-285
- Fixed unit test structural error.
2014-04-13 14:40:11 -04:00
Renato Alves
0b1732fcef Merging in latest from upstream (TM/task:refs/heads/2.4.0)
* commit 'd8b7d914ac': (31 commits)
  TW-5
  TW-306
  Code Cleanup
  Documentation
  TW-285
  Unit Tests
  Unit Tests
  Code Cleanup
  TW-115
  TW-1257
  TW-1300
  Code Cleanup
  Bug
  ChangeLog
  TW-1301
  Bug TW-1302
  Diagnostics
  Bug TW-1254
  Documentation
  Bug TW-1295
  ...
2014-04-13 18:23:10 +00:00
Paul Beckingham
3038b11780 TW-285
- TW-285 DUETODAY doesn't give any output (thanks to Jostein Berntsen).
- Added unit tests.
2014-04-13 09:18:58 -04:00