finished implementing sort functions, plus overdue flag
This commit is contained in:
19
testdata/expected_todo.txt
vendored
19
testdata/expected_todo.txt
vendored
@@ -9,6 +9,7 @@ x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
Plan backyard herb garden @Home +Gardening +Improving +Planning
|
||||
(A) 2012-01-30 Call Mom @Call @Phone +Family
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
(C) Add cover sheets @Office +TPSReports
|
||||
@@ -36,9 +37,27 @@ x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-04 (B) 2013-12-30 Create golang library @Go +go-todotxt due:2014-01-02
|
||||
(B) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
Research self-publishing services +Novel due:2014-01-01
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(D) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
(A) 2012-01-30 Call Mom @Call @Phone +Family
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(A) Call Mom @Call @Phone +Family
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x Download Todo.txt mobile app @Phone
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-04 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(B) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
|
19
testdata/ouput_todo.txt
vendored
19
testdata/ouput_todo.txt
vendored
@@ -9,6 +9,7 @@ x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
Plan backyard herb garden @Home +Gardening +Improving +Planning
|
||||
(A) 2012-01-30 Call Mom @Call @Phone +Family
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
(C) Add cover sheets @Office +TPSReports
|
||||
@@ -36,9 +37,27 @@ x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-04 (B) 2013-12-30 Create golang library @Go +go-todotxt due:2014-01-02
|
||||
(B) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
Research self-publishing services +Novel due:2014-01-01
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(D) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
(A) 2012-01-30 Call Mom @Call @Phone +Family
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(A) Call Mom @Call @Phone +Family
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x Download Todo.txt mobile app @Phone
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-04 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(B) 2013-12-01 Outline chapter 5 @Computer +Novel Level:5 private:false due:2014-02-17
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
|
28
testdata/sort_todo.txt
vendored
Normal file
28
testdata/sort_todo.txt
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# Sort Priority test case
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(D) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
|
||||
# Sort CreatedDate test case
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(A) @Phone Call Mom @Call +Family
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
|
||||
# Sort CompletedDate test case
|
||||
x Download Todo.txt mobile app @Phone
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-04 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
|
||||
# Sort DueDate test case
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer due:2014-02-17 Level:5
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 due:2014-01-05 Create golang library @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go due:2014-01-12 +go-todotxt
|
12
testdata/input_todo.txt → testdata/task_todo.txt
vendored
12
testdata/input_todo.txt → testdata/task_todo.txt
vendored
@@ -14,6 +14,7 @@ x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
# CreatedDate test cases
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
(C) Add cover sheets @Office +TPSReports
|
||||
@@ -54,10 +55,7 @@ x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
|
||||
# Sort Priority test case
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(D) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
# Overdue test cases
|
||||
x 2014-01-04 (B) 2013-12-30 Create golang library @Go +go-todotxt due:2014-01-02
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer due:2017-07-17 Level:5
|
||||
Research self-publishing services +Novel +Novel +Novel due:2014-01-01
|
63
testdata/tasklist_todo.txt
vendored
Normal file
63
testdata/tasklist_todo.txt
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x Download Todo.txt mobile app @Phone
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
+Gardening Plan backyard herb garden +Planning @Home +Improving
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
(C) Add cover sheets @Office +TPSReports
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
(C) Add cover sheets @Office +TPSReports
|
||||
@Home Turn off TV @Electricity @Television @Electricity @Of_Super-Importance Importance:Very!
|
||||
Research self-publishing services +Novel +Novel +Novel due:2014-01-01
|
||||
+Gardening Plan backyard herb garden +Planning @Home +Improving +Relaxing-Work
|
||||
Research self-publishing services +Novel +Novel +Novel due:2014-01-01
|
||||
@Home Turn off TV @Electricity @Television @Electricity Importance:Very!
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer due:2014-02-17 Level:5
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
@Home Turn off TV @Electricity @Television @Electricity Importance:Very!
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
x Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
xylophone lesson
|
||||
X 2012-01-01 Make resolutions
|
||||
x Download Todo.txt mobile app @Phone
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-04 (B) 2013-12-30 Create golang library @Go +go-todotxt due:2014-01-02
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer due:2014-02-17 Level:5
|
||||
Research self-publishing services +Novel +Novel +Novel due:2014-01-01
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
(D) 2013-12-01 private:false Outline chapter 5 +Novel @Computer Level:5 due:2014-02-17
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
(A) 2012-01-30 @Phone Call Mom @Call +Family
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(A) @Phone Call Mom @Call +Family
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x Download Todo.txt mobile app @Phone
|
||||
x 2014-01-03 Create golang library @Go +go-todotxt due:2014-01-05
|
||||
x (C) 2014-01-01 Create golang library documentation @Go +go-todotxt due:2014-01-12
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-04 2014-01-01 Create some more golang library test cases @Go +go-todotxt
|
||||
2013-02-22 Pick up milk @GroceryStore
|
||||
(B) 2013-12-01 private:false Outline chapter 5 +Novel @Computer due:2014-02-17 Level:5
|
||||
x 2014-01-02 (B) 2013-12-30 Create golang library test cases @Go +go-todotxt
|
||||
x 2014-01-03 due:2014-01-05 Create golang library @Go +go-todotxt
|
||||
x (C) 2014-01-01 Create golang library documentation @Go due:2014-01-12 +go-todotxt
|
Reference in New Issue
Block a user