Skip to content

Commit

Permalink
Added new fake shiny test and reverted old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocche authored and lpil committed Jul 5, 2024
1 parent ac42526 commit 67032a4
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,14 @@ pub fn total_cards_of_three_collections_test() {

pub fn shiny_cards_with_none_test() {
gotta_snatch_em_all.shiny_cards(
set.from_list(["Blasturtle", "Zumbat", "Hitmonchuck", "Shinychu"]),
set.from_list(["Blasturtle", "Zumbat", "Hitmonchuck"]),
)
|> should.equal(set.new())
}

pub fn shiny_cards_with_one_test() {
gotta_snatch_em_all.shiny_cards(
set.from_list([
"Blasturtle", "Shiny Phiswan", "Zumbat", "Hitmonchuck", "Shinychu",
]),
set.from_list(["Blasturtle", "Shiny Phiswan", "Zumbat", "Hitmonchuck"]),
)
|> should.equal(set.from_list(["Shiny Phiswan"]))
}
Expand All @@ -152,10 +150,17 @@ pub fn shiny_cards_with_many_test() {
gotta_snatch_em_all.shiny_cards(
set.from_list([
"Shiny Hitmonchuck", "Blasturtle", "Shiny Shazam", "Shiny Phiswan",
"Zumbat", "Hitmonchuck", "Shinychu",
"Zumbat", "Hitmonchuck",
]),
)
|> should.equal(
set.from_list(["Shiny Hitmonchuck", "Shiny Phiswan", "Shiny Shazam"]),
)
}

pub fn fake_shiny_not_included_test() {
gotta_snatch_em_all.shiny_cards(
set.from_list(["Shiny Hitmonchuck", "Shinychu"]),
)
|> should.equal(set.from_list(["Shiny Hitmonchuck"]))
}

0 comments on commit 67032a4

Please sign in to comment.