mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-09-01 02:18:48 +00:00
patch: Feature/ygo set selection (#16)
This commit is contained in:
@@ -93,6 +93,7 @@ TEST_SUITE("ygoPrintingSlotsMatch") {
|
||||
CHECK_FALSE(ygoLikelyEuropeanRegionalSetCode("LOB-DE005"));
|
||||
CHECK_FALSE(ygoLikelyEuropeanRegionalSetCode("SOD-EN015"));
|
||||
CHECK_FALSE(ygoLikelyEuropeanRegionalSetCode("LOB-E"));
|
||||
CHECK_FALSE(ygoLikelyEuropeanRegionalSetCode("LOB-EX005"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,6 +172,12 @@ TEST_SUITE("YuGiOhCardPreviewSource::rarityCodeFor") {
|
||||
CHECK(YuGiOhCardPreviewSource::rarityCodeFor("").empty());
|
||||
CHECK(YuGiOhCardPreviewSource::rarityCodeFor("Mythic Cosmic Rare").empty());
|
||||
}
|
||||
|
||||
TEST_CASE("uses dialog synonym table when ygoRarityShortCode does not match") {
|
||||
CHECK(YuGiOhCardPreviewSource::rarityCodeFor("Mosaic Rare") == "MSR");
|
||||
CHECK(YuGiOhCardPreviewSource::rarityCodeFor("Parallel Rare") == "PR");
|
||||
CHECK(YuGiOhCardPreviewSource::rarityCodeFor("Gold Rare") == "GUR");
|
||||
}
|
||||
}
|
||||
|
||||
TEST_SUITE("YuGiOhCardPreviewSource::extractSetCode") {
|
||||
|
||||
Reference in New Issue
Block a user