Last active
March 10, 2018 19:47
-
-
Save MattMcFarland/32291961e66a02d440d0b7fa157c5f63 to your computer and use it in GitHub Desktop.
jsverify with mocha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Maths', () => { | |
it('addition is commutative', () => { | |
jsc.assertForall(jsc.integer, jsc.integer, (a, b) => a + b === b + a) | |
// same as: | |
assert(jsc.checkForall(jsc.integer, jsc.integer, (a, b) => a + b === b + a) === true) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment