Skip to content

Commit

Permalink
Quickcheck against GMP.
Browse files Browse the repository at this point in the history
This compares pretty much every operation Ramp exposes against the
result of the same computation performed with GMP.

Several bugs/issues were found, and the corresponding tests are
currently commented out: Aatch#24, Aatch#25, Aatch#26, Aatch#27, Aatch#30.
  • Loading branch information
huonw committed Oct 22, 2015
1 parent 6559231 commit 0f0df03
Show file tree
Hide file tree
Showing 3 changed files with 644 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ script:
- |
travis-cargo build -- --features "$FEATURES" &&
travis-cargo test -- --features "$FEATURES" &&
# need optimisations or else a full quickcheck takes too long
travis-cargo test --release -- --features "$FEATURES full-quickcheck" &&
travis-cargo bench -- --features "$FEATURES" &&
travis-cargo doc -- --features "$FEATURES"
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ path = "src/lib.rs"
unstable = [] # To keep travis-cargo happy
asm = []

full-quickcheck = []

[dependencies]
rand = "0.3"

[build-dependencies]
gcc = "0.3"

[dev-dependencies]
rust-gmp = "0.2"
quickcheck = "0.2"
quickcheck_macros = "0.2"
Loading

0 comments on commit 0f0df03

Please sign in to comment.