Add Agda doc and tests

This commit is contained in:
klarkc 2024-07-11 16:29:45 -03:00
parent 1f36e55b31
commit 7d8b984900
No known key found for this signature in database
GPG Key ID: A9688C165077FB02
4 changed files with 42 additions and 2 deletions

View File

@ -136,6 +136,7 @@ These will be applied automatically to every issue, but will be overrode by any
- ABAP
- ABAP CDS
- Agda
- AutoHotkey
- C
- C++

View File

@ -448,3 +448,22 @@ index 525e25d..ba4e68d 100644
-TODO: Create an issue for TODO
--}
-sum a b = a + b
diff --git a/src/Swarm/Game/example.agda b/src/Swarm/Game/example.agda
index 525e25d..ba4e68d 100644
--- a/src/Swarm/Game/example.agda
+++ b/src/Swarm/Game/example.agda
@@ -1,14 +0,0 @@
--- | Standard devices that are always installed.
---
--- TODO: Remove standard devices
--- In the future, make a way to build these and just start the base
--- out with a large supply of each?
--- labels: redesign
-stdDeviceList =
- ["treads", "grabber", "solar panel", "scanner", "plasma cutter"]
-
-{- | Very complicated function.
-
-TODO: Create an issue for TODO
--}
-sum a b = a + b

View File

@ -491,3 +491,23 @@ index 0000000..0ce9b1a
+TODO: Create an issue for TODO
+-}
+sum a b = a + b
diff --git a/src/Swarm/Game/example.agda b/src/Swarm/Game/example.agda
new file mode 100644
index 0000000..0ce9b1a
--- /dev/null
+++ b/src/Swarm/Game/example.agda
@@ -0,0 +1,14 @@
+-- | Standard devices that are always installed.
+--
+-- TODO: Remove standard devices
+-- In the future, make a way to build these and just start the base
+-- out with a large supply of each?
+-- labels: redesign
+stdDeviceList =
+ ["treads", "grabber", "solar panel", "scanner", "plasma cutter"]
+
+{- | Very complicated function.
+
+TODO: Create an issue for TODO
+-}
+sum a b = a + b

View File

@ -65,7 +65,7 @@ class NewIssueTests(unittest.TestCase):
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'), 4)
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 6)
def test_scss_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
@ -153,7 +153,7 @@ class ClosedIssueTests(unittest.TestCase):
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'), 4)
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 6)
def test_scss_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)