Solved: 20 - Classes and Objects
This commit is contained in:
1 parent
8b82257ed6
commit
564cc1b765
3 files changed
+14
-9
No files matched your search
@@ -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