Skip to content

Commit

Permalink
crypto-bigint: add init proptests for equivalence with num-bigint
Browse files Browse the repository at this point in the history
Adds an initial set of property-based tests to check equivalence between
`crypto_bigint::U256` and `num_bigint::BigUint`.
  • Loading branch information
tarcieri committed Jul 29, 2021
1 parent 615762c commit 8aed700
Show file tree
Hide file tree
Showing 6 changed files with 344 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target
**/Cargo.lock
**/*.proptest-regressions
256 changes: 256 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions crypto-bigint/proptests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "proptests"
version = "0.0.0"
edition = "2018"
publish = false

[lib]
path = "./lib.rs"

[workspace]
members = ["."]

[dependencies]
crypto-bigint = { path = ".." }
num-bigint = "0.4"
proptest = "1"
Empty file added crypto-bigint/proptests/lib.rs
Empty file.
Loading

0 comments on commit 8aed700

Please sign in to comment.