Skip to content

Commit

Permalink
LCI update (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshrake authored Nov 15, 2023
1 parent 58a0eb1 commit 166da4a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified data/all_cards.landlord
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "landlord"
version = "0.13.0"
version = "2023.11.0"
authors = ["Justin Shrake <justinshrake@gmail.com>"]
description = "Magic: The Gathering card draw and mulligan simulator"
repository = "https://github.com/mtgoncurve/landlord"
Expand All @@ -16,7 +16,7 @@ lazy_static = "1.2.0"
regex = "1"
serde = "1"
serde_derive = "1"
serde_json = "1"
serde_json = "1"
flate2 = "1"
log = "0.4"
chrono = { version = "0.4", features = ["serde"] }
Expand Down
15 changes: 15 additions & 0 deletions lib/src/card/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,25 @@ mod tests {
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}

#[test]
fn woe_card_1() {
let card = card!("Ashiok, Wicked Manipulator");
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}

#[test]
fn lci_card_0() {
let card = card!("The Ancient One");
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}

#[test]
fn lci_card_1() {
let card = card!("Quintorius Kand");
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}
}

0 comments on commit 166da4a

Please sign in to comment.