Skip to content

Commit

Permalink
LTR update (#49)
Browse files Browse the repository at this point in the history
- make card-update
- Add card check tests to cards.rs
- Increment to version 0.12.0
  • Loading branch information
jshrake authored Jul 1, 2023
1 parent f28bc12 commit fd318f9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 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.
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "landlord"
version = "0.11.0"
version = "0.12.0"
authors = ["Justin Shrake <justinshrake@gmail.com>"]
description = "Magic: The Gathering card draw and mulligan simulator"
repository = "https://github.com/mtgoncurve/landlord"
Expand Down
12 changes: 12 additions & 0 deletions lib/src/card/card.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,4 +1033,16 @@ mod tests {
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}
#[test]
fn ltr_card_0() {
let card = card!("Tom Bombadil");
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}
#[test]
fn ltr_card_1() {
let card = card!("Sauron, the Dark Lord");
assert_eq!(card.is_land(), false);
assert_eq!(card.kind, CardKind::Unknown);
}
}

0 comments on commit fd318f9

Please sign in to comment.