mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
rustfmt the expr fuzzer
This commit is contained in:
parent
fb0c904b07
commit
39b6059910
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ static CMD_PATH: &str = "expr";
|
||||||
fn generate_expr(max_depth: u32) -> String {
|
fn generate_expr(max_depth: u32) -> String {
|
||||||
let mut rng = rand::thread_rng();
|
let mut rng = rand::thread_rng();
|
||||||
let ops = [
|
let ops = [
|
||||||
"+", "-", "*", "/", "%", "<", ">", "=", "&", "|", "!=", "<=", ">=", ":", "index", "length", "substr",
|
"+", "-", "*", "/", "%", "<", ">", "=", "&", "|", "!=", "<=", ">=", ":", "index", "length",
|
||||||
|
"substr",
|
||||||
];
|
];
|
||||||
|
|
||||||
let mut expr = String::new();
|
let mut expr = String::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue