1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 13:07:46 +00:00

Merge pull request #2334 from sylvestre/crate_version

use crate_version!() instead of reading the env + rustfmt
This commit is contained in:
Sylvestre Ledru 2021-06-03 10:56:57 +02:00 committed by GitHub
commit 841b689477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 166 additions and 259 deletions

View file

@ -2,18 +2,16 @@ use crate::common::util::*;
#[test]
fn test_rejects_nan() {
new_ucmd!()
.args(&["NaN"])
.fails()
.stderr_only("seq: invalid 'not-a-number' argument: 'NaN'\nTry 'seq --help' for more information.");
new_ucmd!().args(&["NaN"]).fails().stderr_only(
"seq: invalid 'not-a-number' argument: 'NaN'\nTry 'seq --help' for more information.",
);
}
#[test]
fn test_rejects_non_floats() {
new_ucmd!()
.args(&["foo"])
.fails()
.stderr_only("seq: invalid floating point argument: 'foo'\nTry 'seq --help' for more information.");
new_ucmd!().args(&["foo"]).fails().stderr_only(
"seq: invalid floating point argument: 'foo'\nTry 'seq --help' for more information.",
);
}
// ---- Tests for the big integer based path ----