Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
42ddf3ef
Commit
42ddf3ef
authored
Nov 19, 2014
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for negative values.
parent
e93393b9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
0 deletions
+17
-0
test/FilterTest.py
test/FilterTest.py
+10
-0
test/data/FilterTest10-result.txt
test/data/FilterTest10-result.txt
+1
-0
test/data/FilterTest13-result.txt
test/data/FilterTest13-result.txt
+3
-0
test/data/FilterTest3.txt
test/data/FilterTest3.txt
+1
-0
test/data/FilterTest8-result.txt
test/data/FilterTest8-result.txt
+1
-0
test/data/FilterTest9-result.txt
test/data/FilterTest9-result.txt
+1
-0
No files found.
test/FilterTest.py
View file @
42ddf3ef
...
...
@@ -286,6 +286,16 @@ class FilterTest(unittest.TestCase):
self
.
assertEquals
(
todolist_to_string
(
filtered_todos
),
todolist_to_string
(
reference
))
def
test_filter30
(
self
):
todos
=
load_file
(
'data/FilterTest3.txt'
)
otf
=
Filter
.
OrdinalTagFilter
(
'value:>-8'
)
filtered_todos
=
otf
.
filter
(
todos
)
reference
=
load_file
(
'data/FilterTest13-result.txt'
)
self
.
assertEquals
(
todolist_to_string
(
filtered_todos
),
todolist_to_string
(
reference
))
class
OrdinalTagFilterTest
(
unittest
.
TestCase
):
def
setUp
(
self
):
today
=
date
.
today
()
...
...
test/data/FilterTest10-result.txt
View file @
42ddf3ef
Tag with some value:8
Tag with negative value:-7
test/data/FilterTest13-result.txt
0 → 100644
View file @
42ddf3ef
Tag with some value:8
Tag with some other value:16
Tag with negative value:-7
test/data/FilterTest3.txt
View file @
42ddf3ef
...
...
@@ -3,3 +3,4 @@ Tag with future due date due:2030-01-01
Tag with some value:8
Tag with some other value:16
Tag with nonsense value:nonsense
Tag with negative value:-7
test/data/FilterTest8-result.txt
View file @
42ddf3ef
Tag with some value:8
Tag with negative value:-7
test/data/FilterTest9-result.txt
View file @
42ddf3ef
Tag with some value:8
Tag with some other value:16
Tag with negative value:-7
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment