Improve randomized testing setup
* Allow iterations to be specified via an env var * Randomly decide the edit count, with a maximum specified via an env var. * Instead of separate env vars for starting seed + trial, just accept a seed * Remove some noisy output
This commit is contained in:
parent
4bf5149a18
commit
7170ec7c96
7 changed files with 140 additions and 181 deletions
|
|
@ -1,5 +1,7 @@
|
|||
use rand::distributions::Alphanumeric;
|
||||
use rand::prelude::{Rng, SeedableRng, StdRng};
|
||||
use rand::{
|
||||
distributions::Alphanumeric,
|
||||
prelude::{Rng, SeedableRng, StdRng},
|
||||
};
|
||||
|
||||
const OPERATORS: &[char] = &[
|
||||
'+', '-', '<', '>', '(', ')', '*', '/', '&', '|', '!', ',', '.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue