You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t.truthy(math.isEqual(amount1, amount2)) provides no helpful debugging info. The replacement I've been using: t.deepEquals(amount1, amount2) works for natMath amounts, but is a bad habit because it would fail for sets.
Description of the Design
Add a helper (in zoeTestHelpers) that just compares the brands and values, and prints something helpful on failure.
Also, use the new helper in assertPayoutAmount(), etc., which currently use t.deepEqual().
Security Considerations
more reliable test results.
Test Plan
replace some uses in tests. Observe no change in test results.
The text was updated successfully, but these errors were encountered:
What is the Problem Being Solved?
t.truthy(math.isEqual(amount1, amount2))
provides no helpful debugging info. The replacement I've been using:t.deepEquals(amount1, amount2)
works for natMath amounts, but is a bad habit because it would fail for sets.Description of the Design
Add a helper (in zoeTestHelpers) that just compares the brands and values, and prints something helpful on failure.
Also, use the new helper in
assertPayoutAmount()
, etc., which currently uset.deepEqual()
.Security Considerations
more reliable test results.
Test Plan
replace some uses in tests. Observe no change in test results.
The text was updated successfully, but these errors were encountered: