In reality, this creation is sensitive to the order in which modules
are loaded. In more complicated cases, you may find that you need to
-explicitly declare a class type before the corresponding is loaded.
+explicitly declare a class type before the corresponding class is
+loaded.
=item (3)
'... withdrew from savings successfully'
);
is( $savings_account->balance, 200,
- '... got the right savings balance after withdrawl' );
+ '... got the right savings balance after withdrawal' );
$savings_account->deposit(150);
is( $savings_account->balance, 350,
'... withdrew from checking successfully'
);
is( $checking_account->balance, 50,
- '... got the right checkings balance after withdrawl' );
+ '... got the right checkings balance after withdrawal' );
is( $savings_account->balance, 350,
- '... got the right savings balance after checking withdrawl (no overdraft)'
+ '... got the right savings balance after checking withdrawal (no overdraft)'
);
is(
'... withdrew from checking successfully'
);
is( $checking_account->balance, 0,
- '... got the right checkings balance after withdrawl' );
+ '... got the right checkings balance after withdrawal' );
is( $savings_account->balance, 200,
- '... got the right savings balance after overdraft withdrawl' );
+ '... got the right savings balance after overdraft withdrawal' );
}
{
'... withdrew from checking successfully'
);
is( $checking_account->balance, 50,
- '... got the right checkings balance after withdrawl' );
+ '... got the right checkings balance after withdrawal' );
isnt(
exception {
'... withdrawal failed due to attempted overdraft'
);
is( $checking_account->balance, 50,
- '... got the right checkings balance after withdrawl failure' );
+ '... got the right checkings balance after withdrawal failure' );
}
=end testing