mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-24 02:13:02 -07:00
Merge 7d907e54d0 into fd82b140a8
This commit is contained in:
commit
566148973e
3 changed files with 60 additions and 7 deletions
|
|
@ -74,6 +74,20 @@ TEST(LoadingFromClipboardTest, WeirdWhitespaceIsIgnored)
|
|||
testDeck(clipboard, result);
|
||||
}
|
||||
|
||||
TEST(LoadingFromClipboardTest, TabSeparatedImport)
|
||||
{
|
||||
QString clipboard("2\tMystic Snake\tStreets of New Capenna\n"
|
||||
"3x\tCounterspell\tNPH\n"
|
||||
"\t2\tSol Ring\tFMB\n"
|
||||
"1\tForest\n"
|
||||
"\n"
|
||||
"2x\tDoom Blade\tM11\n");
|
||||
|
||||
Result result("", "", {{"Mystic Snake", 2}, {"Counterspell", 3}, {"Sol Ring", 2}, {"Forest", 1}},
|
||||
{{"Doom Blade", 2}});
|
||||
testDeck(clipboard, result);
|
||||
}
|
||||
|
||||
TEST(LoadingFromClipboardTest, RemoveBlankEntriesFromBeginningAndEnd)
|
||||
{
|
||||
QString clipboard("\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue