aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor previous commitsQuey-Liang Kao2017-08-291-4/+68
| | | | | | | | | Rewrite the `ManipulateNotes` function into `HandleNotes`, which routes the note sub-commands to calls of newly-written `Parse*Note` functions. On successful parse, these functions return true, and false otherwise. Related tests are also refined.
* Implement the "en" feature: Editting notesQuey-Liang Kao2017-08-141-0/+7
|
* Implement the "dn" feature: Deleteing notesQuey-Liang Kao2017-08-141-0/+7
|
* Implement the "an" feature: Adding notes to todosQuey-Liang Kao2017-08-141-0/+12
| | | | | | This patch introduce a new attribute of a todo item, which is "Notes", of type []string. The following enhancing patches will contain the listing, removing and editing features.
* Fix #64, parsing a todo with europe date formatGrant Ammons2017-06-121-12/+28
| | | | | * the `hasDue` function was not running, and therefore it was not parsing the due date. * Also added the beginnings of a more holistic test approach, using `app_test.go`.
* Formatting for testGrant Ammons2017-05-101-7/+7
|
* Update the testsGrant Ammons2017-05-091-25/+54
| | | | | | * Test editing a todo with just a due date does not affect subject * Test editing a todo with just subject does not affect due date * Editing a subject should also update projects and contexts
* subcommands like delete don't take a subject, so make it optionalMichael Strüder2017-05-091-0/+10
|
* test multiple whitespaceMichael Strüder2017-05-091-1/+11
|
* add test for func (p Parser) Parse()Michael Strüder2017-05-091-0/+21
|
* Adds support to projects with hyphenRodrigo Dumont2017-03-251-2/+5
|
* This commit removes all usages of github.com/jinzhu/now.DmitriyMV2017-03-041-5/+4
| | | | | | | | | github.com/jinzhu/now has numerous errors handling date and time. The example's of them are: 1. Incorrect handling of DST (https://github.com/jinzhu/now/issues/13). 2. 24 Hour long days (https://stackoverflow.com/questions/25254443/return-local-beginning-of-day-time-object-in-go) Chicago has 23, 24, or 25 hours in a day. 3. Incorrect usage of time.Truncate which can return time with a non-zero minute, depending on the time's Location. (https://github.com/golang/go/issues/16647). There are other issues as well, including getting incorrect beginning and end of the month.
* Support UTF-8 strings as contexts and projectsQuey-Liang Kao2017-01-261-3/+8
|
* Fix a bug and add some testsQuey-Liang Kao2017-01-211-0/+13
|
* Fix tests by removing hard-coded yearGrant Ammons2017-01-161-4/+8
|
* bugfix - use 'tod' as shorthand for todayGrant Ammons2016-09-081-0/+8
|
* Make agenda its own commandGrant Ammons2016-05-121-1/+0
|
* Fix issue with parsing specific datesGrant Ammons2016-05-121-0/+9
|
* Parse out arbitrary datesGrant Ammons2016-05-061-7/+25
| | | | | | | | | | | | | | This will parse out dates in the format of "mon dd", the month being a 3 letter month, and the date being just the day. due mar 10 due sep 25 due oct 2 it will also "intelligently" guess the year, based upon which is the shorter duration from time.Now(). for instance, if today's date is dec 25 and you schedule an event for jan 2, it will schedule it for the following year.
* Handle parsing dates, and printing themGrant Ammons2016-04-301-14/+44
|
* Organize things a bit betterGrant Ammons2016-04-241-0/+83