Merge pull request #109 from caspiano/feat/crystal

feat: add Crystal
This commit is contained in:
Alastair Mooney 2022-03-04 13:29:10 +00:00 committed by GitHub
commit 25d82b6763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 8 deletions

View File

@ -73,6 +73,7 @@ There are additional inputs if you want to be able to assign issues to projects.
* C++
* C#
* CSS
* Crystal
* Dart
* Elixir
* Go

View File

@ -591,5 +591,14 @@
}
}
]
},
{
"language": "Crystal",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
}
]

View File

@ -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

View File

@ -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

View File

@ -33,8 +33,12 @@ 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)
# Includes 2 tests for Crystal.
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 5)
def test_abap_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'abap'), 2)
@ -86,7 +90,8 @@ class ClosedIssueTests(unittest.TestCase):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
def test_ruby_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 3)
# Includes 2 tests for Crystal.
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 5)
def test_abap_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'abap'), 2)