mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
fix test
This commit is contained in:
parent
670d868e6d
commit
0b8a77ada5
1 changed files with 2 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ TEST(DeckHashTest, RepeatTest)
|
|||
DeckList decklist(
|
||||
R"(<?xml version="1.0"?><cockatrice_deck version="1"><deckname></deckname><comments></comments><zone name="main"><card number="1" name="Mountain"/><card number="2" name="Island"/></zone><zone name="side"><card number="3" name="Forest"/></zone></cockatrice_deck>)");
|
||||
for (int i = 0; i < 1e6; ++i) { // repeat hashing a million times
|
||||
decklist.updateDeckHash();
|
||||
decklist.getDeckHash();
|
||||
decklist.refreshDeckHash();
|
||||
}
|
||||
auto hash = decklist.getDeckHash().toStdString();
|
||||
ASSERT_EQ(hash, "5cac19qm") << "The hash matches";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue