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
{{ message }}
This repository was archived by the owner on Jan 10, 2019. It is now read-only.
Making the following modification to /test/rock-paper-scissors.js:
it("disallows transitions where the stake changes",async()=>{reveal.roundBuyIn=bnToHex(hexToBN(reveal.roundBuyIn).add(newBN(1)));// assertRevert(validTransition(reveal, resting));assertRevert(true);});
I would expect the test not to be passed. The fact that it doe pass, indicates that assertRevert is not trustworthy, since if we made a mistake in coding validTransition, such that it failed to revert on a disallowed move, our tests for this scenario would still pass.
Making the following modification to
/test/rock-paper-scissors.js:I would expect the test not to be passed. The fact that it doe pass, indicates that assertRevert is not trustworthy, since if we made a mistake in coding
validTransition, such that it failed to revert on a disallowed move, our tests for this scenario would still pass.fmg-corehas an improved helper calledexpectRevert.So this could be an easy fix!