mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
seq: return UResult from uumain() function (#2784)
This commit is contained in:
parent
3f18b98c9d
commit
8a55205521
3 changed files with 119 additions and 65 deletions
|
@ -1,3 +1,4 @@
|
|||
// spell-checker:ignore lmnop xlmnop
|
||||
use crate::common::util::*;
|
||||
use std::io::Read;
|
||||
|
||||
|
@ -676,3 +677,19 @@ fn test_rounding_end() {
|
|||
.stdout_is("1\n")
|
||||
.no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_error_float() {
|
||||
new_ucmd!()
|
||||
.arg("lmnop")
|
||||
.fails()
|
||||
.usage_error("invalid floating point argument: 'lmnop'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse_error_hex() {
|
||||
new_ucmd!()
|
||||
.arg("0xlmnop")
|
||||
.fails()
|
||||
.usage_error("invalid hexadecimal argument: '0xlmnop'");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue