aboutsummaryrefslogtreecommitdiff
path: root/test/test_view.ml
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_view.ml')
-rw-r--r--test/test_view.ml9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_view.ml b/test/test_view.ml
index b49b090..e8de6a0 100644
--- a/test/test_view.ml
+++ b/test/test_view.ml
@@ -66,6 +66,11 @@ let as_bool = function T.Bool b -> b | _ -> Alcotest.fail "expected a bool"
let test_year_shape () =
let v = view_of 2027 in
Alcotest.(check string) "rite" "ef" (as_str (get [ "rite" ] v));
+ (* Defect 1: [rite] stays the stable key ("ef"); [rite_name] is the
+ reader-facing display name a template prints instead. en.ini's own
+ [rite] section names it directly. *)
+ Alcotest.(check string) "rite_name" "Roman Missal, 1962 typical edition"
+ (as_str (get [ "rite_name" ] v));
Alcotest.(check string) "year" "2027" (as_str (get [ "year" ] v));
Alcotest.(check int) "twelve months" 12 (List.length (as_list (get [ "months" ] v)));
Alcotest.(check int) "365 days" 365 (List.length (as_list (get [ "days" ] v)))
@@ -193,7 +198,9 @@ let test_vocabularies_localise () =
let d1 = List.hd (as_list (get [ "days" ] v)) in
Alcotest.(check string) "weekday" "Feria VI" (as_str (get [ "weekday" ] d1));
Alcotest.(check string) "rank" "I classis" (as_str (get [ "rank_name" ] d1));
- Alcotest.(check string) "colour" "albus" (as_str (get [ "colour_name" ] d1))
+ Alcotest.(check string) "colour" "albus" (as_str (get [ "colour_name" ] d1));
+ Alcotest.(check string) "rite_name" "Missale Romanum, editio typica 1962"
+ (as_str (get [ "rite_name" ] v))
let suite =
( "View",