go-by-test/wallet/wallet_test.go

17 lines
218 B
Go
Raw Normal View History

package wallet
import "testing"
func TestWallet(t *testing.T) {
wallet := Wallet{}
wallet.Deposit(10)
got := wallet.Balance()
2024-09-11 09:15:24 +00:00
want := Bitcoin(10)
if got != want {
t.Errorf("got %d want %d", got, want)
}
}