add one more test

pull/3/head
Minh Doan 7 years ago
parent c936161b89
commit 9a1d8306c8
  1. 10
      blockchain/blockchain_test.go

@ -46,10 +46,16 @@ func TestAddNewTransferAmount(t *testing.T) {
bc = bc.AddNewTransferAmount("minh", "alok", 3)
if bc == nil {
t.Error("Failed to add new transfer")
t.Error("Failed to add new transfer to alok")
}
bc = bc.AddNewTransferAmount("minh", "rj", DefaultCoinbaseValue-2)
bc = bc.AddNewTransferAmount("minh", "rj", 100)
if bc == nil {
t.Error("Failed to add new transfer to rj")
}
bc = bc.AddNewTransferAmount("minh", "stephen", DefaultCoinbaseValue-102)
if bc != nil {
t.Error("minh should not have enough fun to make the transfer")

Loading…
Cancel
Save