mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
test: new and closed for crystal
This commit is contained in:
parent
832535b4cf
commit
74e76203e8
@ -75,6 +75,17 @@ index 525e25d..ba4e68d 100644
|
|||||||
- kept together as one.
|
- kept together as one.
|
||||||
- '''
|
- '''
|
||||||
- pass
|
- pass
|
||||||
|
diff --git a/tests/example_file.cr b/tests/example_file.cr
|
||||||
|
index e6da2ec..67f14dd 100644
|
||||||
|
--- a/tests/example_file.cr
|
||||||
|
+++ b/tests/example_file.cr
|
||||||
|
@@ -1,14 +1,3 @@
|
||||||
|
-# TODO: Come up with a more imaginative greeting
|
||||||
|
puts "Greetings"
|
||||||
|
-
|
||||||
|
-# TODO: Do even more stuff
|
||||||
|
-# This function should probably do something more interesting
|
||||||
|
-# labels: help wanted
|
||||||
diff --git a/tests/example_file.rb b/tests/example_file.rb
|
diff --git a/tests/example_file.rb b/tests/example_file.rb
|
||||||
index e6da2ec..67f14dd 100644
|
index e6da2ec..67f14dd 100644
|
||||||
--- a/tests/example_file.rb
|
--- a/tests/example_file.rb
|
||||||
|
|||||||
@ -78,6 +78,18 @@ index 0000000..525e25d
|
|||||||
+ '''
|
+ '''
|
||||||
+ pass
|
+ pass
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
|
diff --git a/tests/example_file.cr b/tests/example_file.cr
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..e6da2ec
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/tests/example_file.cr
|
||||||
|
@@ -0,0 +1,14 @@
|
||||||
|
+# TODO: Come up with a more imaginative greeting
|
||||||
|
+puts "Greetings"
|
||||||
|
+
|
||||||
|
+# TODO: Do even more stuff
|
||||||
|
+# This function should probably do something more interesting
|
||||||
|
+# labels: help wanted
|
||||||
diff --git a/tests/example_file.rb b/tests/example_file.rb
|
diff --git a/tests/example_file.rb b/tests/example_file.rb
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..e6da2ec
|
index 0000000..e6da2ec
|
||||||
|
|||||||
@ -33,6 +33,9 @@ class NewIssueTests(unittest.TestCase):
|
|||||||
def test_java_issues(self):
|
def test_java_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
|
||||||
|
|
||||||
|
def test_crystal_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'crystal'), 2)
|
||||||
|
|
||||||
def test_ruby_issues(self):
|
def test_ruby_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
||||||
|
|
||||||
@ -85,6 +88,9 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
def test_java_issues(self):
|
def test_java_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
|
||||||
|
|
||||||
|
def test_crystal_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'crystal'), 2)
|
||||||
|
|
||||||
def test_ruby_issues(self):
|
def test_ruby_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user