diff --git a/tests/test_closed.diff b/tests/test_closed.diff index 1ef86b9..5285a0c 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -59,6 +59,22 @@ index 525e25d..ba4e68d 100644 - # TODO: Do more stuff - # This function should probably do something more interesting - # labels: help wanted +- +-def my_method(arg): +- """ +- TODO: Second multiline comment +- also need to be turned into task, and hopefully +- kept together as one. +- """ +- pass +- +-def MyClass: +- ''' +- TODO: Third multiline comment +- also need to be turned into task, and hopefully +- kept together as one. +- ''' +- pass diff --git a/tests/example_file.rb b/tests/example_file.rb index e6da2ec..67f14dd 100644 --- a/tests/example_file.rb @@ -163,7 +179,7 @@ index 0000000..7cccc5b - #+begin_src python - print("Hello World") - #+end_src -- + #+begin_comment +- #+begin_comment - TODO: Multiline comments - also need to be turned into todos, and hopefully - kept together as one todo diff --git a/tests/test_new.diff b/tests/test_new.diff index fbd20e1..ac6187b 100644 --- a/tests/test_new.diff +++ b/tests/test_new.diff @@ -61,6 +61,22 @@ index 0000000..525e25d + # TODO: Do more stuff + # This function should probably do something more interesting + # labels: help wanted ++ ++def my_method(arg): ++ """ ++ TODO: Second multiline comment ++ also need to be turned into task, and hopefully ++ kept together as one. ++ """ ++ pass ++ ++def MyClass: ++ ''' ++ TODO: Third multiline comment ++ also need to be turned into task, and hopefully ++ kept together as one. ++ ''' ++ pass diff --git a/tests/example_file.rb b/tests/example_file.rb new file mode 100644 index 0000000..e6da2ec diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index 8423a11..d8ad06f 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -22,7 +22,7 @@ class NewIssueTests(unittest.TestCase): self.raw_issues = parser.parse(diff_file) def test_python_issues(self): - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 2) + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 4) def test_yaml_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'yaml'), 2) @@ -67,7 +67,7 @@ class ClosedIssueTests(unittest.TestCase): self.raw_issues = parser.parse(diff_file) def test_python_issues(self): - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 2) + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 4) def test_yaml_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'yaml'), 2)