Skip to content

Instantly share code, notes, and snippets.

@garbles
Last active March 12, 2017 05:08
Show Gist options
  • Save garbles/b8b254752a7d91ce89c07cbf8a3d4d1e to your computer and use it in GitHub Desktop.
Save garbles/b8b254752a7d91ce89c07cbf8a3d4d1e to your computer and use it in GitHub Desktop.
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