mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests: fix some clippy warnings
This commit is contained in:
parent
4534f359f2
commit
09e53f3d2d
9 changed files with 52 additions and 72 deletions
|
@ -318,13 +318,13 @@ fn test_invalid_substr() {
|
|||
.stdout_only("\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["substr", "abc", &(std::usize::MAX.to_string() + "0"), "1"])
|
||||
.args(&["substr", "abc", &(usize::MAX.to_string() + "0"), "1"])
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stdout_only("\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["substr", "abc", "0", &(std::usize::MAX.to_string() + "0")])
|
||||
.args(&["substr", "abc", "0", &(usize::MAX.to_string() + "0")])
|
||||
.fails()
|
||||
.code_is(1)
|
||||
.stdout_only("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue