mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Update unit tests
This commit is contained in:
parent
381a754c6e
commit
008d51b5ea
@ -153,12 +153,17 @@ index 0000000..7cccc5b
|
|||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/tests/example_file.jl
|
+++ b/src/tests/example_file.jl
|
||||||
@@ -0,0 +1,2 @@
|
@@ -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")
|
- print("Hello World")
|
||||||
- #= TODO: Multiline comments
|
- #= TODO: Multiline comments
|
||||||
- also need to be turned into task, and hopefully
|
- also need to be turned into task, and hopefully
|
||||||
- kept together as one.
|
- 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
|
diff --git a/tests/defs.bzl b/tests/defs.bzl
|
||||||
index 525e25d..ba4e68d 100644
|
index 525e25d..ba4e68d 100644
|
||||||
--- a/tests/defs.bzl
|
--- a/tests/defs.bzl
|
||||||
|
|||||||
@ -129,7 +129,7 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'tex'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'tex'), 2)
|
||||||
|
|
||||||
def test_julia_issues(self):
|
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):
|
def test_starlark_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 5)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'python'), 5)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user