Solved: 20 - Classes and Objects
This commit is contained in:
@@ -8,6 +8,8 @@ TEST(ClassesAndObjects, DepositAndWithdraw) {
|
||||
EXPECT_TRUE(account.withdraw(30.0));
|
||||
EXPECT_DOUBLE_EQ(account.balance(), 120.0);
|
||||
EXPECT_FALSE(account.withdraw(1000.0));
|
||||
EXPECT_DEATH(account.withdraw(-10.0), "amount > 0");
|
||||
EXPECT_DEATH(account.deposit(-10.0), "amount > 0");
|
||||
}
|
||||
|
||||
TEST(ClassesAndObjects, OwnerName) {
|
||||
|
||||
Reference in New Issue
Block a user