[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 51/86] gnu: Add rust-quickcheck.
From: |
ng0 |
Subject: |
[PATCH 51/86] gnu: Add rust-quickcheck. |
Date: |
Tue, 3 Jan 2017 23:36:07 +0000 |
* gnu/packages/rust.scm (rust-quickcheck): New variable.
---
gnu/packages/rust.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 08d168143..5f767212b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1408,3 +1408,38 @@ Rust compiler as a standalone testing harness.")
"@code{strsim} provides implementations of string similarity metrics.
Includes Hamming, Levenshtein, Damerau-Levenshtein, Jaro, and Jaro-Winkler.")
(license license:expat)))
+
+(define-public rust-quickcheck
+ (package
+ (name "rust-quickcheck")
+ (version "0.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "quickcheck" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "01hligcv1h4pvc8ykch65qjzi7jgcq2s462v69j27slc84fl3hh2"))))
+ (build-system cargo-build-system)
+ (inputs
+ `(("rust-log" ,rust-log "src")
+ ;; TODO: ("rust-env-logger" ,rust-env-logger "src")
+ ("rust-rand" ,rust-rand "src")))
+ (home-page "https://github.com/BurntSushi/quickcheck")
+ (synopsis "Automatic property based testing with shrinking")
+ (description
+ "QuickCheck is a way to do property based testing using randomly
+generated input. This crate comes with the ability to randomly
+generate and shrink integers, floats, tuples, booleans, lists, strings,
+options and results. All QuickCheck needs is a property function, it
+will then randomly generate inputs to that function and call the
+property for each set of inputs. If the property fails (whether by a
+runtime error like index out-of-bounds or by not satisfying your
+property), the inputs are \"shrunk\" to find a smaller counter-example.
+
+The shrinking strategies for lists and numbers use a binary search to
+cover the input space quickly. It should be the same strategy used in
+Koen Claessen's QuickCheck for Haskell.")
+ (license (list license:unlicense license:expat))))
--
2.11.0
- [PATCH 46/86] gnu: Add rust-term., (continued)
- [PATCH 46/86] gnu: Add rust-term., ng0, 2017/01/03
- [PATCH 44/86] gnu: Add rust-rustc-serialize., ng0, 2017/01/03
- [PATCH 50/86] gnu: Add rust-strsim., ng0, 2017/01/03
- [PATCH 49/86] gnu: Add rust-compiletest-rs., ng0, 2017/01/03
- [PATCH 45/86] gnu: Add rust-time., ng0, 2017/01/03
- [PATCH 55/86] gnu: Add rust-docopt., ng0, 2017/01/03
- [PATCH 48/86] gnu: Add rust-idna., ng0, 2017/01/03
- [PATCH 52/86] gnu: Add rust-memchr., ng0, 2017/01/03
- [PATCH 51/86] gnu: Add rust-quickcheck.,
ng0 <=
- [PATCH 56/86] gnu: Add rust-byteorder., ng0, 2017/01/03
- [PATCH 53/86] gnu: Add rust-fs2., ng0, 2017/01/03
- [PATCH 58/86] gnu: Add rust-aho-corasick., ng0, 2017/01/03
- [PATCH 63/86] gnu: Add rust-env-logger., ng0, 2017/01/03
- [PATCH 59/86] gnu: Add rust-regex-syntax., ng0, 2017/01/03
- [PATCH 54/86] gnu: Add rust-memmap., ng0, 2017/01/03
- [PATCH 60/86] gnu: Add rust-simd., ng0, 2017/01/03
- [PATCH 62/86] gnu: Add rust-regex., ng0, 2017/01/03
- [PATCH 64/86] gnu: Add rust-quine-mc-cluskey., ng0, 2017/01/03