From 008d51b5ea32878f56c10a30ec68528fb40e467c Mon Sep 17 00:00:00 2001 From: Christoph Koschel Date: Mon, 11 Sep 2023 11:04:43 +0200 Subject: [PATCH] Update unit tests --- tests/test_closed.diff | 7 ++++++- tests/test_todo_parser.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test_closed.diff b/tests/test_closed.diff index d3ee0fb..e8219ac 100644 --- a/tests/test_closed.diff +++ b/tests/test_closed.diff @@ -153,12 +153,17 @@ index 0000000..7cccc5b --- /dev/null +++ b/src/tests/example_file.jl @@ -0,0 +1,2 @@ -- # TODO: Hopefully this comment turns into an issue +- #TODO: Hopefully this comment turns into an issue +- # TODO: Hopefully this comment also turns into an issue - print("Hello World") - #= TODO: Multiline comments - also need to be turned into task, and hopefully - kept together as one. - =# +- #=TODO: Another copied multiline comment +- also need to be turned into task, and hopefully +- kept together as one. +- =# diff --git a/tests/defs.bzl b/tests/defs.bzl index 525e25d..ba4e68d 100644 --- a/tests/defs.bzl diff --git a/tests/test_todo_parser.py b/tests/test_todo_parser.py index d71bb0a..1f8a008 100644 --- a/tests/test_todo_parser.py +++ b/tests/test_todo_parser.py @@ -129,7 +129,7 @@ class ClosedIssueTests(unittest.TestCase): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'tex'), 2) def test_julia_issues(self): - self.assertEqual(count_issues_for_file_type(self.raw_issues, 'julia'), 2) + self.assertEqual(count_issues_for_file_type(self.raw_issues, 'julia'), 4) def test_starlark_issues(self): self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 5)