Timeline for Mocha assertions not returning correctly on assert.equal with BN
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 25, 2020 at 20:48 | comment | added | errata | interesting point.. thx again | |
Jan 25, 2020 at 19:18 | comment | added | goodvibration |
@errata: I think that assert.equal just uses == , and since you're passing two different objects, it fails. You can verify my conjecture by calling assert.equal(supplyCap, supplyCap) and see if it passes.
|
|
Jan 25, 2020 at 17:51 | vote | accept | errata | ||
Jan 25, 2020 at 17:49 | comment | added | errata | Makes sense. This is because there is some internal difference between the objects? | |
Jan 25, 2020 at 8:35 | review | Low quality posts | |||
Jan 25, 2020 at 9:26 | |||||
Jan 25, 2020 at 8:16 | history | answered | goodvibration | CC BY-SA 4.0 |