mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
head: interpret size as decimal
This commit is contained in:
parent
a8219403a6
commit
f10faf21bc
2 changed files with 16 additions and 1 deletions
|
@ -189,6 +189,15 @@ fn test_no_such_file_or_directory() {
|
|||
.stderr_contains("cannot open 'no_such_file.toml' for reading: No such file or directory");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_lines_leading_zeros() {
|
||||
new_ucmd!()
|
||||
.arg("--lines=010")
|
||||
.pipe_in("\n\n\n\n\n\n\n\n\n\n\n\n")
|
||||
.succeeds()
|
||||
.stdout_is("\n\n\n\n\n\n\n\n\n\n");
|
||||
}
|
||||
|
||||
/// Test that each non-existent files gets its own error message printed.
|
||||
#[test]
|
||||
fn test_multiple_nonexistent_files() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue