Skip to content

Commit 4fcac8c

Browse files
committed
Fix Clojure tests
Fixes #131
1 parent f088719 commit 4fcac8c

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

tests/test_closed.diff

+4-6
Original file line numberDiff line numberDiff line change
@@ -278,18 +278,16 @@ index 525e25d..ba4e68d 100644
278278
-TODO: Create an issue for TODO
279279
--}
280280
-sum a b = a + b
281-
282281
diff --git a/tests/config.json5 b/tests/config.json5
283282
index 0000000..525e25d 100644
284283
--- a/tests/config.json5
285284
+++ b/tests/config.json5
286285
@@ -0,0 +0,1 @@
287286
- // TODO: Delete this line from the codebase
288-
289-
diff·--git·a/tests/example.clj·b/tests/example.clj
290-
index·0000000..525e25d·100644
291-
---·a/tests/example.clj
292-
+++·b/tests/example.clj
287+
diff --git a/tests/example.clj b/tests/example.clj
288+
index 0000000..525e25d 100644
289+
--- a/tests/example.clj
290+
+++ b/tests/example.clj
293291
@@ -1,8 +0,0 @@
294292
-(ns example)
295293
-

tests/test_new.diff

+5-6
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,11 @@ index 0000000..525e25d
306306
+ "butItHasSomePendingActivities"
307307
+ ]
308308
+}
309-
310-
diff·--git·a/tests/example.clj·b/tests/example.clj
311-
new·file·mode·100644
312-
index·0000000..525e25d
313-
---·/dev/null
314-
+++·b/tests/example.clj
309+
diff --git a/tests/example.clj b/tests/example.clj
310+
new file mode 100644
311+
index 0000000..525e25d
312+
--- /dev/null
313+
+++ b/tests/example.clj
315314
@@ -0,0 +1,8 @@
316315
+(ns example)
317316
+

tests/test_todo_parser.py

+6
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def test_r_issues(self):
7676
def test_haskell_issues(self):
7777
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
7878

79+
def test_clojure_issues(self):
80+
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
81+
7982

8083
class ClosedIssueTests(unittest.TestCase):
8184
# Check for removed TODOs across the files specified.
@@ -141,6 +144,9 @@ def test_r_issues(self):
141144
def test_haskell_issues(self):
142145
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'haskell'), 2)
143146

147+
def test_clojure_issues(self):
148+
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
149+
144150

145151
class IgnorePatternTests(unittest.TestCase):
146152

0 commit comments

Comments
 (0)