Skip to content

Commit

Permalink
Tests: Add coverage for listing projects at various positions
Browse files Browse the repository at this point in the history
To investigate whether #430 can be reproduced.
  • Loading branch information
inkarkat committed Dec 26, 2024
1 parent 616e7a1 commit 85f14a4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/t1320-listproj.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ test_todo_session 'listproj with context' <<EOF
+sunflowers
EOF

cat > todo.txt <<EOF
+roses +flowers
+roses and only +flowers
(B) +roses prioritized +flowers
(B) 2024-02-21 +roses prioritized +flowers
x 2024-02-21 2024-02-19 +roses done +flowers
+roses +flowers at the front
+roses +flowers at the front with leading space
my +flowers are +roses in the middle
at the back pick the +roses +flowers
at the back with trailing space +flowers +roses
EOF
test_todo_session 'listproj of projects at various positions' <<EOF
>>> todo.sh listproj
+flowers
+roses
EOF

cat > todo.txt <<EOF
(B) give a +1 to this project
(C) notice the sunflowers +sunflowers [+gardening] [+landscape]
Expand Down

0 comments on commit 85f14a4

Please sign in to comment.