mirror of
https://github.com/hanzoai/money.git
synced 2026-09-30 22:56:51 +00:00
test: fix zero-value assertion (FromCents is USD 2-dec, MinorString=150)
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ func TestZeroValueAgnostic(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("accumulate: %v", err)
|
||||
}
|
||||
if acc.MinorString() != "150000000000000000" || acc.Currency().Code != "USD" {
|
||||
if acc.MinorString() != "150" || acc.Currency().Code != "USD" {
|
||||
t.Fatalf("accumulated = %s %s", acc.MinorString(), acc.Currency().Code)
|
||||
}
|
||||
if Zero(USD).Cmp(Amount{}) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user