Skip to content

Commit 85f14a4

Browse files
committed
Tests: Add coverage for listing projects at various positions
To investigate whether #430 can be reproduced.
1 parent 616e7a1 commit 85f14a4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/t1320-listproj.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,24 @@ test_todo_session 'listproj with context' <<EOF
7474
+sunflowers
7575
EOF
7676

77+
cat > todo.txt <<EOF
78+
+roses +flowers
79+
+roses and only +flowers
80+
(B) +roses prioritized +flowers
81+
(B) 2024-02-21 +roses prioritized +flowers
82+
x 2024-02-21 2024-02-19 +roses done +flowers
83+
+roses +flowers at the front
84+
+roses +flowers at the front with leading space
85+
my +flowers are +roses in the middle
86+
at the back pick the +roses +flowers
87+
at the back with trailing space +flowers +roses
88+
EOF
89+
test_todo_session 'listproj of projects at various positions' <<EOF
90+
>>> todo.sh listproj
91+
+flowers
92+
+roses
93+
EOF
94+
7795
cat > todo.txt <<EOF
7896
(B) give a +1 to this project
7997
(C) notice the sunflowers +sunflowers [+gardening] [+landscape]

0 commit comments

Comments
 (0)