mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 08:52:19 -07:00
Add test case to pin tax counter ID boundary
This commit is contained in:
parent
e84d2fb3a1
commit
e447542957
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ TEST(NewCounterId, SkipsReservedRangeWhenOnlyReservedCountersExist)
|
||||||
EXPECT_EQ(f.player.newCounterId(), CounterIds::FirstUserId);
|
EXPECT_EQ(f.player.newCounterId(), CounterIds::FirstUserId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(NewCounterId, SkipsTaxCounterIds)
|
||||||
|
{
|
||||||
|
PlayerFixture f;
|
||||||
|
f.player.addCounter(new Server_Counter(CounterIds::CommanderTax, "tax1", color(), 0, 0));
|
||||||
|
f.player.addCounter(new Server_Counter(CounterIds::PartnerTax, "tax2", color(), 0, 0));
|
||||||
|
EXPECT_EQ(f.player.newCounterId(), CounterIds::FirstUserId);
|
||||||
|
}
|
||||||
|
|
||||||
TEST(NewCounterId, ReturnsNextIdAboveHighestUserCounter)
|
TEST(NewCounterId, ReturnsNextIdAboveHighestUserCounter)
|
||||||
{
|
{
|
||||||
PlayerFixture f;
|
PlayerFixture f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue