1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge pull request #7330 from cakebaker/fuzz_add_new_test_operators

fuzz: use new `<`/`>` operators in `fuzz_test.rs`
This commit is contained in:
Sylvestre Ledru 2025-02-21 22:47:05 +01:00 committed by GitHub
commit 693d2c4258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 20 deletions

24
fuzz/Cargo.lock generated
View file

@ -664,12 +664,6 @@ version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "minimal-lexical"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]] [[package]]
name = "nix" name = "nix"
version = "0.29.0" version = "0.29.0"
@ -682,16 +676,6 @@ dependencies = [
"libc", "libc",
] ]
[[package]]
name = "nom"
version = "7.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
dependencies = [
"memchr",
"minimal-lexical",
]
[[package]] [[package]]
name = "nom" name = "nom"
version = "8.0.0" version = "8.0.0"
@ -793,12 +777,12 @@ dependencies = [
[[package]] [[package]]
name = "parse_datetime" name = "parse_datetime"
version = "0.7.0" version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae130e79b384861c193d6016a46baa2733a6f8f17486eb36a5c098c577ce01e8" checksum = "4bffd1156cebf13f681d7769924d3edfb9d9d71ba206a8d8e8e7eb9df4f4b1e7"
dependencies = [ dependencies = [
"chrono", "chrono",
"nom 7.1.3", "nom",
"regex", "regex",
] ]
@ -1314,7 +1298,7 @@ name = "uu_tr"
version = "0.0.29" version = "0.0.29"
dependencies = [ dependencies = [
"clap", "clap",
"nom 8.0.0", "nom",
"uucore", "uucore",
] ]

View file

@ -65,6 +65,14 @@ fn generate_test_args() -> Vec<TestArg> {
arg: "!=".to_string(), arg: "!=".to_string(),
arg_type: ArgType::STRINGSTRING, arg_type: ArgType::STRINGSTRING,
}, },
TestArg {
arg: ">".to_string(),
arg_type: ArgType::STRINGSTRING,
},
TestArg {
arg: "<".to_string(),
arg_type: ArgType::STRINGSTRING,
},
TestArg { TestArg {
arg: "-eq".to_string(), arg: "-eq".to_string(),
arg_type: ArgType::INTEGERINTEGER, arg_type: ArgType::INTEGERINTEGER,