fix: Fix/ci cd issues (#12)

This commit is contained in:
Sebastian Dine
2026-05-11 08:42:07 +02:00
committed by GitHub
parent 5805101d24
commit 7935f2b18e
6 changed files with 15 additions and 4 deletions
+3 -2
View File
@@ -209,7 +209,7 @@ TEST_SUITE("YuGiOhCard JSON") {
CHECK(back == c);
}
TEST_CASE("missing rarityCode in legacy rows is accepted and mapped to empty") {
TEST_CASE("legacy JSON without rarityCode key parses (domain uses rarity only)") {
const nlohmann::json j = {
{"id", 1},
{"amount", 1},
@@ -232,7 +232,8 @@ TEST_SUITE("YuGiOhCard JSON") {
const auto card = j.get<YuGiOhCard>();
CHECK(card.rarity == "Ultra Rare");
CHECK(card.rarityCode.empty());
CHECK(card.setNo == "SDY-006");
CHECK(card.set.id == "SDY");
}
}