feat: Adult-Regeln für 2025/26 erfassen

Die Lücke aus dem Saisonumzug ist geschlossen: `2025-26/adult.json` stammt
aus dem IAFSC Technical Announcement 2025/26 (Wettkämpfe 7.–11. Oktober
2025 und Oberstdorf 16.–22. Mai 2026). Das Manifest verweist jetzt auf die
Datei statt auf `status: missing`.

Gegen das Announcement 2026/27 geprüft, es gibt genau zwei fachliche
Unterschiede – beide in `2025-26/notes.md` dokumentiert:

- 2025/26 kennt keine choreographische Pirouette, also
  `requires_choreographic_spin: false` in allen Kategorien (passend dazu
  fehlt `ChSp` im Katalog der Saison).
- Gold kappt 2025/26 alle Features bei Level 3; die Trennung „Level 3 in
  Pirouetten, Level 2 in der Schrittsequenz" kam erst 2026/27.
  `max_sequence_level` ist deshalb 3 statt 2.

Der Saison-Paar-Test pinnt jetzt diese beiden Unterschiede, statt die
fehlende Datei zu erwarten. `./tools/check_rules.sh`: 0 Fehler; die beiden
D5-Hinweise zu Gold/2A sind in beiden Saisons gewollt.
This commit is contained in:
torsten 2026-11-13 10:45:47 +01:00
parent 386105aa71
commit 47fecbcb3b
6 changed files with 228 additions and 36 deletions

View file

@ -91,11 +91,10 @@ func _test_package_contents() -> void:
return
_check(previous.catalog != null, "2025/26 has a catalog")
_check(previous.levels != null, "2025/26 has level rules")
_check(previous.adult == null, "2025/26 has no adult rules")
_check(previous.is_document_missing("adult"), "2025/26 marks adult as missing")
_check(previous.adult != null, "2025/26 has adult rules")
_check(
not previous.get_warnings().is_empty(),
"2025/26 warns about the missing document"
not previous.is_document_missing("adult"),
"2025/26 provides the adult document"
)
@ -190,8 +189,26 @@ func _test_season_pair_difference() -> void:
not _has_message(new_issues, "nicht im Katalog"),
"2026/27 knows ChSp"
)
_check(older.adult == null, "2025/26 has no adult rules")
_check(newer.adult != null, "2026/27 has adult rules")
# The two documented adult differences between the seasons.
var old_gold := older.adult.get_category("gold")
var new_gold := newer.adult.get_category("gold")
_check(
old_gold != null and not old_gold.requires_choreographic_spin,
"2025/26 Gold does not require a choreographic spin"
)
_check(
new_gold != null and new_gold.requires_choreographic_spin,
"2026/27 Gold requires a choreographic spin"
)
_check(
old_gold != null and old_gold.max_sequence_level == 3,
"2025/26 Gold caps all features at level 3"
)
_check(
new_gold != null and new_gold.max_sequence_level == 2,
"2026/27 Gold caps the step sequence at level 2"
)
func _make_pair_routine() -> Routine:

View file

@ -1698,23 +1698,37 @@ func _run() -> void:
)
_check(
controller.get_routine().adult_category == "gold",
"the category is kept when the target season lacks adult rules"
"the category is kept when the season changes"
)
var unavailable_index := -1
var gold_index := -1
for index: int in range(controller.adult_category_option.item_count):
if str(controller.adult_category_option.get_item_metadata(index)) == "gold":
unavailable_index = index
_check(unavailable_index >= 0, "the stored category stays visible")
gold_index = index
_check(gold_index >= 0, "Gold is available in 2025/26 as well")
_check(
controller.adult_category_option.get_item_text(unavailable_index).contains(
controller.adult_category_option.selected == gold_index,
"the dropdown keeps the selected category"
)
# A category the season does not know stays visible instead of being hidden.
controller.get_routine().adult_category = "legacy_category"
controller._sync_adult_category_option()
var unknown_index := -1
for index: int in range(controller.adult_category_option.item_count):
if (
str(controller.adult_category_option.get_item_metadata(index))
== "legacy_category"
):
unknown_index = index
_check(unknown_index >= 0, "a stored category stays visible")
_check(
controller.adult_category_option.get_item_text(unknown_index).contains(
"nicht verfügbar"
),
"an unavailable category is labelled instead of hidden"
)
_check(
controller.adult_category_option.selected == unavailable_index,
"the dropdown selects the unavailable category"
)
controller.get_routine().adult_category = "gold"
controller._setup_adult_category_controls()
var selected_season := controller.season_option.selected
_check(
str(controller.season_option.get_item_metadata(selected_season)) == "2025/26",