aboutsummaryrefslogtreecommitdiff
path: root/internal/calendar/types_test.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 12:13:07 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-27 12:13:07 +0200
commit4c76a397cc1395b207e106580897fa64ef039cef (patch)
tree9756473292dcd60a5d18e6935563e694afbfde6a /internal/calendar/types_test.go
parentb4982d22be0c79949046c9d957354209996acb2e (diff)
downloadlectio-4c76a397cc1395b207e106580897fa64ef039cef.tar.gz
lectio-4c76a397cc1395b207e106580897fa64ef039cef.zip
feat(calendar): core types + Gregorian Computus
Diffstat (limited to 'internal/calendar/types_test.go')
-rw-r--r--internal/calendar/types_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/calendar/types_test.go b/internal/calendar/types_test.go
new file mode 100644
index 0000000..c09b53e
--- /dev/null
+++ b/internal/calendar/types_test.go
@@ -0,0 +1,15 @@
+package calendar
+
+import "testing"
+
+func TestParseEnums(t *testing.T) {
+ if ParseRank("feast") != RankFeast || ParseRank("nonsense") != RankFerial {
+ t.Error("ParseRank")
+ }
+ if ParseClass("bvm") != ClassBVM || ParseClass("") != ClassNone {
+ t.Error("ParseClass")
+ }
+ if ParseColour("violet") != Violet || ParseColour("chartreuse") != "" {
+ t.Error("ParseColour")
+ }
+}