fix(tests): swap Delta/Epsilon for Zeta/Theta to avoid _land_kw collision

Delta matches \bdelta\b in the nonbasic land guard regex, causing enrich_card
to classify it as a land (cmc=0). Zeta and Theta have no land keyword matches.
This commit is contained in:
KoalaTrapLord committed 2026-03-29 20:37:04 -04:00
1 parent e1bb2e7209
commit 252e46b288
1 file changed
+4 -2
+4 -2
View File
@@ -72,10 +72,12 @@ class TestEnrichCardDeterministic:
assert 2 <= c2.cmc <= 6
def test_unknown_card_cmc_range(self):
for name in ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]:
# Delta matches \bdelta\b in _land_kw (nonbasic land guard) → classified as land.
# Epsilon contains "den" fragment risk. Use Zeta/Theta instead — no land keyword overlap.
for name in ["Alpha", "Beta", "Gamma", "Zeta", "Theta"]:
c = Card(name=name)
enrich_card(c)
assert 2 <= c.cmc <= 6
assert 2 <= c.cmc <= 6, f"{name} got cmc={c.cmc}, expected creature in [2,6]"
class TestEnrichCardPreservesExistingData: