Skip to content

Instantly share code, notes, and snippets.

@non
Created July 29, 2015 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save non/a790f7972b884d7e6c6a to your computer and use it in GitHub Desktop.
Save non/a790f7972b884d7e6c6a to your computer and use it in GitHub Desktop.

These are some errors I got while running test in non/algebra. It seems like maybe scala.js's Int emulation is not perfect.

[info] - [Int].order.antisymmetry *** FAILED ***
[info]   GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation.
[info]    (algebra-laws-test-fastopt.js:25526)
[info]     Falsified after 22 successful property evaluations.
[info]     Location: (algebra-laws-test-fastopt.js:25526)
[info]     Occurred when passed generated values (
[info]       arg0 = -2147483648,
[info]       arg1 = 2147483647
[info]     )
[info]     Label of failing property:
[info]       (false ?|| false) failed
[info] - [Int].order.antisymmetry-eq
[info] - [Int].order.gt *** FAILED ***
[info]   GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation.
[info]    (algebra-laws-test-fastopt.js:25526)
[info]     Falsified after 61 successful property evaluations.
[info]     Location: (algebra-laws-test-fastopt.js:25526)
[info]     Occurred when passed generated values (
[info]       arg0 = -2147483648,
[info]       arg1 = 2147483647
[info]     )
[info]     Label of failing property:
[info]       (true ?== false) failed
[info] - [Int].order.gteqv *** FAILED ***
[info]   GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation.
[info]    (algebra-laws-test-fastopt.js:25526)
[info]     Falsified after 44 successful property evaluations.
[info]     Location: (algebra-laws-test-fastopt.js:25526)
[info]     Occurred when passed generated values (
[info]       arg0 = 2147483647,
[info]       arg1 = -2147483648
[info]     )
[info]     Label of failing property:
[info]       (true ?== false) failed

...

[info] - [Int].lattice.join:semilattice.associativity *** FAILED ***
[info]   GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation.
[info]    (algebra-laws-test-fastopt.js:25526)
[info]     Falsified after 8 successful property evaluations.
[info]     Location: (algebra-laws-test-fastopt.js:25526)
[info]     Occurred when passed generated values (
[info]       arg0 = 2147483647,
[info]       arg1 = -2147483648,
[info]       arg2 = 1
[info]     )
[info]     Label of failing property:
[info]       (1 ?== 2147483647) failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment