Currently test fails on a new testrpc network (so all accounts have 100ETH):
1) Contract: Conference on setLimitOfParticipants returns only your deposit for multiple invalidations:
AssertionError: expected false to equal true
at test/conference.js:68:16
at process._tickCallback (internal/process/next_tick.js:103:7)
This is because the assert relies on comparing the "raw" BigNumber objects, not the underlying numbers and ">" may behave unexpectedly on the raw object. In this case the two BigNumber objects are:
I also fixed up the other assert operators for similar edge cases, using toString when comparing against a string, and toNumber when comparing against a number (as in the above failing case).
Currently test fails on a new testrpc network (so all accounts have 100ETH):
This is because the assert relies on comparing the "raw" BigNumber objects, not the underlying numbers and ">" may behave unexpectedly on the raw object. In this case the two BigNumber objects are:
and the ">" operator returns false.
I also fixed up the other assert operators for similar edge cases, using toString when comparing against a string, and toNumber when comparing against a number (as in the above failing case).
All tests run to success.