Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huonw/random-tests
Tests for Rust's std::rand
https://github.com/huonw/random-tests
Last synced: about 1 month ago
JSON representation
Tests for Rust's std::rand
- Host: GitHub
- URL: https://github.com/huonw/random-tests
- Owner: huonw
- Created: 2013-10-31T12:34:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-24T09:25:27.000Z (almost 10 years ago)
- Last Synced: 2023-04-10T09:40:02.579Z (over 1 year ago)
- Language: Rust
- Size: 290 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random tests
[![Build Status](https://travis-ci.org/huonw/random-tests.png)](https://travis-ci.org/huonw/random-tests)
Probabilistic tests for the distributions in Rust's standard
library. These are mostly significance level tests, and so will fail
occasionally (assuming the distributions are implemented
correctly... if they aren't then it will hopefully fail always).Run with
rustc --opt-level=3 --test lib.rs && ./lib
This can take a long time, since it uses a lot of random
numbers. Adjust the constants in `std_dists` for more/fewer numbers,
higher is better (but slower).# TODO
- full of approximations (e.g. it replaces student-t by normal always)
- larger variety of tests (currently just performs t-tests on a set of
sample means and sample observations to check these are close to the
expected values)
- should probably use TestU01 and/or Diehard[er] instead of/as well as
hand-written pure Rust tests.