aboutsummaryrefslogtreecommitdiffstats
path: root/parser_test.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-24 09:54:29 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-24 09:54:29 -0400
commitc34fdae510debc8d106a68f60799b64b98c9b2f5 (patch)
tree3ba23bc38ebbca1376e1faa94d596cb57e662920 /parser_test.go
parentbd362c8e56e3453b6c2874f2d1e81ee350539d65 (diff)
Modify Todo structure to use correct types
Diffstat (limited to 'parser_test.go')
-rw-r--r--parser_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser_test.go b/parser_test.go
index 980aad2..1ab2826 100644
--- a/parser_test.go
+++ b/parser_test.go
@@ -55,7 +55,7 @@ func TestParseContexts(t *testing.T) {
func TestDueToday(t *testing.T) {
parser := &Parser{}
todo := parser.Parse("do this thing with @bob and @mary due today")
- if todo.Due != now.BeginningOfDay() {
+ if todo.FormattedDue != now.BeginningOfDay() {
fmt.Println("Date is different", todo.Due, time.Now())
}
}
@@ -63,7 +63,7 @@ func TestDueToday(t *testing.T) {
func TestDueTomorrow(t *testing.T) {
parser := &Parser{}
todo := parser.Parse("do this thing with @bob and @mary due tomorrow")
- if todo.Due != now.BeginningOfDay().AddDate(0, 0, 1) {
+ if todo.FormattedDue != now.BeginningOfDay().AddDate(0, 0, 1) {
fmt.Println("Date is different", todo.Due, time.Now())
}
}