Last active
March 12, 2017 05:08
-
-
Save garbles/b8b254752a7d91ce89c07cbf8a3d4d1e to your computer and use it in GitHub Desktop.
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
require('jasmine-check').install(); | |
describe('adding numbers', () => { | |
check.it('the sum is always greater than the parts', [gen.int, gen.int], (a, b) => { | |
expect(a + b).toBeGreaterThanOrEqual(a); | |
expect(a + b).toBeGreaterThanOrEqual(b); | |
}); | |
}); | |
// FAIL | |
// ● adding numbers › the sum is always greater than the parts ( 0, -1 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment