mirror of
https://git.pumpin.online/funkpower/typikon.git
synced 2026-10-22 18:57:13 +00:00
1.1.1
The README stops explaining how the project tests and releases itself. Someone arriving at it wants to know what a day of the Great Fast permits, not how the wheels get built; the parity suite and the release workflow are in docs/, where the person who needs them will look. The published description now says how many churches are covered, on both registries. That is a number in two files nobody editing the jurisdiction table will open, so a test pins it and names them.
This commit is contained in:
@@ -706,3 +706,27 @@ fn date_arithmetic_saturates_instead_of_overflowing() {
|
||||
assert_eq!(d.iso().len(), 10);
|
||||
}
|
||||
}
|
||||
|
||||
/// The published description counts the churches, on PyPI and on npm, where
|
||||
/// nobody editing this table will see it. Adding a jurisdiction without saying
|
||||
/// so makes that description quietly wrong, so the count is pinned here and
|
||||
/// the failure names the two places to correct.
|
||||
#[test]
|
||||
fn the_published_description_still_counts_the_churches_correctly() {
|
||||
let catholic = ["ruthenian", "ugcc", "melkite", "romanian-catholic"];
|
||||
let orthodox = JURISDICTIONS
|
||||
.iter()
|
||||
.filter(|j| !catholic.contains(&j.key))
|
||||
.count();
|
||||
let byzantine_catholic = JURISDICTIONS
|
||||
.iter()
|
||||
.filter(|j| catholic.contains(&j.key))
|
||||
.count();
|
||||
|
||||
assert_eq!(
|
||||
(orthodox, byzantine_catholic, CALENDARS.len()),
|
||||
(20, 4, 3),
|
||||
"the counts moved; update `description` in Cargo.toml (PyPI) and in \
|
||||
npm/package.json.in (npm), and the README's opening"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user