Updated _list() output to match updated addto. Adjusted tests to match.

- _list() now shows the capitalized filename in place of 'TODO:'.
  For example, listing garden.txt produces a output prefixed by 'GARDEN:'
  This eliminates the ' from $FILE' part of the _list() output. All tests
  were adjusted to match this new output.
This commit is contained in:
Jared Cordasco
2010-01-12 14:42:02 -05:00
parent 2d3820394a
commit b6467eaa64
13 changed files with 75 additions and 73 deletions

View File

@@ -19,7 +19,7 @@ GARDEN: '2009-02-13 notice the daisies' added on line 1.
>>> todo.sh listfile garden.txt
1 2009-02-13 notice the daisies
--
TODO: 1 of 1 tasks shown from garden.txt
GARDEN: 1 of 1 tasks shown
EOF
test_tick
@@ -32,7 +32,7 @@ GARDEN: '2009-02-14 smell the roses' added on line 2.
1 2009-02-13 notice the daisies
2 2009-02-14 smell the roses
--
TODO: 2 of 2 tasks shown from garden.txt
GARDEN: 2 of 2 tasks shown
EOF
test_tick
@@ -46,7 +46,7 @@ GARDEN: '2009-02-15 mow the lawn' added on line 3.
2 2009-02-14 smell the roses
3 2009-02-15 mow the lawn
--
TODO: 3 of 3 tasks shown from garden.txt
GARDEN: 3 of 3 tasks shown
EOF
# Switch to config file
@@ -65,7 +65,7 @@ GARDEN: '2009-02-15 take out the trash' added on line 4.
3 2009-02-15 mow the lawn
4 2009-02-15 take out the trash
--
TODO: 4 of 4 tasks shown from garden.txt
GARDEN: 4 of 4 tasks shown
EOF
test_done