@@ -14,7 +14,7 @@ def test_single_deposit
14
14
bank_account = BankAccount . new
15
15
bank_account . open
16
16
bank_account . deposit ( 100 )
17
- assert_equal bank_account . balance , 100
17
+ assert_equal 100 , bank_account . balance
18
18
end
19
19
20
20
def test_multiple_deposits
@@ -23,7 +23,7 @@ def test_multiple_deposits
23
23
bank_account . open
24
24
bank_account . deposit ( 100 )
25
25
bank_account . deposit ( 50 )
26
- assert_equal bank_account . balance , 150
26
+ assert_equal 150 , bank_account . balance
27
27
end
28
28
29
29
def test_withdraw_once
@@ -32,7 +32,7 @@ def test_withdraw_once
32
32
bank_account . open
33
33
bank_account . deposit ( 100 )
34
34
bank_account . withdraw ( 75 )
35
- assert_equal bank_account . balance , 25
35
+ assert_equal 25 , bank_account . balance
36
36
end
37
37
38
38
def test_withdraw_twice
@@ -42,7 +42,7 @@ def test_withdraw_twice
42
42
bank_account . deposit ( 100 )
43
43
bank_account . withdraw ( 80 )
44
44
bank_account . withdraw ( 20 )
45
- assert_equal bank_account . balance , 0
45
+ assert_equal 0 , bank_account . balance
46
46
end
47
47
48
48
def test_can_do_multiple_operations_sequentially
@@ -54,7 +54,7 @@ def test_can_do_multiple_operations_sequentially
54
54
bank_account . withdraw ( 200 )
55
55
bank_account . deposit ( 60 )
56
56
bank_account . withdraw ( 50 )
57
- assert_equal bank_account . balance , 20
57
+ assert_equal 20 , bank_account . balance
58
58
end
59
59
60
60
def test_cannot_check_balance_of_closed_account
@@ -107,7 +107,7 @@ def test_reopened_account_does_not_retain_balance
107
107
bank_account . deposit ( 50 )
108
108
bank_account . close
109
109
bank_account . open
110
- assert_equal bank_account . balance , 0
110
+ assert_equal 0 , bank_account . balance
111
111
end
112
112
113
113
def test_cannot_withdraw_more_than_deposited
0 commit comments