1
Fork 0
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:
jfinkels 2021-12-29 09:20:17 -05:00 committed by GitHub
parent 3f18b98c9d
commit 8a55205521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 119 additions and 65 deletions

View file

@ -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'");
}