Skip to content

Instantly share code, notes, and snippets.

@dubzzz
Last active May 7, 2018 21:25
Show Gist options
  • Save dubzzz/e69326b647a09f0e516789869a630812 to your computer and use it in GitHub Desktop.
Save dubzzz/e69326b647a09f0e516789869a630812 to your computer and use it in GitHub Desktop.
fc.assert(
fc.property(
fc.integer(), fc.integer(),
(a, b) => a <= b
? a <= average(a, b) && average(a, b) <= b
: b <= average(a, b) && average(a, b) <= a));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment