diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2022-03-27 22:01:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-27 22:01:06 -0400 |
commit | d297ee4639f65e9bb1c0c636ebe9faad075822c1 (patch) | |
tree | 2b23199b40b3c26803bfea0732649d928c345c63 /tests | |
parent | 747497cc8a42b885673c90ca9e5c7fde3ddb5c64 (diff) |
refactor: remove some simple as-casts (#697)
Remove some simple as casts that are easy to change to .into(), or easy to check.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/arg_tests.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/arg_tests.rs b/tests/arg_tests.rs index 2c4d21a8..649b1cfb 100644 --- a/tests/arg_tests.rs +++ b/tests/arg_tests.rs @@ -33,9 +33,7 @@ fn test_large_default_time() { .arg("18446744073709551616") .assert() .failure() - .stderr(predicate::str::contains( - "set your default value to be at most", - )); + .stderr(predicate::str::contains("could not parse")); } #[test] @@ -61,9 +59,7 @@ fn test_large_delta_time() { .arg("18446744073709551616") .assert() .failure() - .stderr(predicate::str::contains( - "set your time delta to be at most", - )); + .stderr(predicate::str::contains("could not parse")); } #[test] @@ -89,9 +85,7 @@ fn test_large_rate() { .arg("18446744073709551616") .assert() .failure() - .stderr(predicate::str::contains( - "set your update rate to be at most unsigned INT_MAX.", - )); + .stderr(predicate::str::contains("could not parse")); } #[test] @@ -118,7 +112,7 @@ fn test_invalid_rate() { .arg("100-1000") .assert() .failure() - .stderr(predicate::str::contains("invalid digit")); + .stderr(predicate::str::contains("could not parse")); } #[test] |