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.
|
||||
- '''
|
||||
- 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
|
||||
index e6da2ec..67f14dd 100644
|
||||
--- a/tests/example_file.rb
|
||||
@ -210,4 +221,4 @@ index 525e25d..ba4e68d 100644
|
||||
- TODO:Multiline comments
|
||||
- also need to be turned into todos, and hopefully
|
||||
- kept together as one todo
|
||||
- #}
|
||||
- #}
|
||||
|
||||
@ -78,6 +78,18 @@ index 0000000..525e25d
|
||||
+ '''
|
||||
+ pass
|
||||
\ 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
|
||||
new file mode 100644
|
||||
index 0000000..e6da2ec
|
||||
|
||||
@ -33,6 +33,9 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_java_issues(self):
|
||||
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):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
||||
|
||||
@ -50,10 +53,10 @@ class NewIssueTests(unittest.TestCase):
|
||||
|
||||
def test_autohotkey_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'autohotkey'), 1)
|
||||
|
||||
|
||||
def test_handlebars_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
|
||||
|
||||
|
||||
def test_org_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
||||
|
||||
@ -85,6 +88,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_java_issues(self):
|
||||
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):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
|
||||
|
||||
@ -96,16 +102,16 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
|
||||
def test_tex_issues(self):
|
||||
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)
|
||||
|
||||
def test_autohotkey_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'autohotkey'), 1)
|
||||
|
||||
|
||||
def test_handlebars_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
|
||||
|
||||
|
||||
def test_org_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user