*** Testing class Team ***
regular constructors' and accessors' tests:
true
true
mutators' tests:
true
true
true
testing "other" methods:
testing display:
test succeeds if you see team name that's empty, size of 4,
and four players each with an empty name,
strength 5, exp 0, empty role, and hp 20:
Team: , size: 4
PlayerChar(, 5, 0.000000, , 20)
PlayerChar(, 5, 0.000000, , 20)
PlayerChar(, 5, 0.000000, , 20)
PlayerChar(, 5, 0.000000, , 20)
test succeeds if you see name of Example2New,
size of 2, and two players,
* Angie with strength 10, exp 2.7, role tank,
and hp 15, and
* Sven with strength 5, exp 3.1, role support,
and hp 14:
Team: Example2New, size: 2
PlayerChar(Angie, 10, 2.700000, tank, 15)
PlayerChar(Sven, 5, 3.100000, support, 14)
testing is_bigger_than:
called copy constructor
true
called Team Team 2's destructor
for Team object at address: 0x7ffeef8d0fb0
called copy constructor
true
called Team Team 1's destructor
for Team object at address: 0x7ffeef8d0f88
called copy constructor
true
called Team Team 1's destructor
for Team object at address: 0x7ffeef8d0f60
testing copy constructor:
In Team version with cout statement in copy constructor,
should see statement calling that constructor:
called copy constructor
true
true
true
next part of test succeeds if you see name of Pomegranates,
size of 3, and 3 players,
* Deloris with strength 9, exp 4.4, role adventurer,
and hp 13, and
* Sven with strength 5, exp 3.1, role support,
and hp 14, and
* one player with no name, strength 5, exp 0,
no role, and hp 20
team3:
Team: Pomegranates, size: 3
PlayerChar(Deloris, 9, 4.400000, adventurer, 13)
PlayerChar(Sven, 5, 3.100000, support, 14)
PlayerChar(, 5, 0.000000, , 20)
next part of test succeeds if you see name of Pomegranates,
size of 3, and 3 players,
* Angie with strength 10, exp 2.7, role tank,
and hp 15, and
* Sven with strength 5, exp 3.1, role support,
and hp 14, and
* one player with no name, strength 5, exp 0,
no role, and hp 20
team2:
Team: Pomegranates, size: 3
PlayerChar(Angie, 10, 2.700000, tank, 15)
PlayerChar(Sven, 5, 3.100000, support, 14)
PlayerChar(, 5, 0.000000, , 20)
testing overloaded assignment operator:
In Team version with cout statement in
overloaded assignment operator,
should see statement calling that operator:
called overloaded assignment operator
true
true
next part of test succeeds if you see name of Kumquats,
size of 3, and 3 players,
* Deloris with strength 9, exp 4.4, role adventurer,
and hp 13, and
* Sven with strength 5, exp 3.1, role support,
and hp 14, and
* Angie with strength 10, exp 2.7, role tank,
and hp 15
team3:
Team: Kumquats, size: 3
PlayerChar(Deloris, 9, 4.400000, adventurer, 13)
PlayerChar(Sven, 5, 3.100000, support, 14)
PlayerChar(Angie, 10, 2.700000, tank, 15)
next part of test succeeds if you see name of Kumquats,
size of 3, and 3 players,
* Deloris with strength 9, exp 4.4, role adventurer,
and hp 13, and
* Sven with strength 5, exp 3.1, role support,
and hp 14, and
* one player with no name, strength 5, exp 0,
no role, and hp 20
team1:
Team: Kumquats, size: 3
PlayerChar(Deloris, 9, 4.400000, adventurer, 13)
PlayerChar(Sven, 5, 3.100000, support, 14)
PlayerChar(, 5, 0.000000, , 20)
In Team version with cout statements in
destructor, should now see statements from
calling that destructor for:
team3 (with name KumQuats), team2 (with name Pomegranates),
team1 (with name Kumquats), a_team (with no name),
ex_team2 (with name Example2New), and
ex_team1 (with no name)
called Team Kumquats's destructor
for Team object at address: 0x7ffeef8d0e90
called Team Pomegranates's destructor
for Team object at address: 0x7ffeef8d0ff0
called Team Kumquats's destructor
for Team object at address: 0x7ffeef8d1030
called Team 's destructor
for Team object at address: 0x7ffeef8d1058
called Team Example2New's destructor
for Team object at address: 0x7ffeef8d1848
called Team 's destructor
for Team object at address: 0x7ffeef8d1870