mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
split: formatting
This commit is contained in:
parent
d8a16a2351
commit
e378454a26
1 changed files with 10 additions and 3 deletions
|
@ -377,7 +377,10 @@ fn test_split_obs_lines_standalone() {
|
||||||
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
||||||
assert_eq!(glob.count(), 2);
|
assert_eq!(glob.count(), 2);
|
||||||
assert_eq!(glob.collate(), at.read_bytes(name));
|
assert_eq!(glob.collate(), at.read_bytes(name));
|
||||||
ucmd.args(&["-99999999999999999991", name]).succeeds().no_stderr().no_stdout();
|
ucmd.args(&["-99999999999999999991", name])
|
||||||
|
.succeeds()
|
||||||
|
.no_stderr()
|
||||||
|
.no_stdout();
|
||||||
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
||||||
assert_eq!(glob.count(), 2);
|
assert_eq!(glob.count(), 2);
|
||||||
assert_eq!(glob.collate(), at.read_bytes(name));
|
assert_eq!(glob.collate(), at.read_bytes(name));
|
||||||
|
@ -389,7 +392,10 @@ fn test_split_obs_lines_standalone_overflow() {
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
let name = "obs-lines-standalone";
|
let name = "obs-lines-standalone";
|
||||||
RandomFile::new(&at, name).add_lines(4);
|
RandomFile::new(&at, name).add_lines(4);
|
||||||
ucmd.args(&["-99999999999999999991", name]).succeeds().no_stderr().no_stdout();
|
ucmd.args(&["-99999999999999999991", name])
|
||||||
|
.succeeds()
|
||||||
|
.no_stderr()
|
||||||
|
.no_stdout();
|
||||||
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]]$");
|
||||||
assert_eq!(glob.count(), 1);
|
assert_eq!(glob.count(), 1);
|
||||||
assert_eq!(glob.collate(), at.read_bytes(name));
|
assert_eq!(glob.collate(), at.read_bytes(name));
|
||||||
|
@ -1020,7 +1026,8 @@ fn test_line_bytes() {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_line_bytes_overflow() {
|
fn test_line_bytes_overflow() {
|
||||||
let (at, mut ucmd) = at_and_ucmd!();
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
ucmd.args(&["-C", "18446744073709551616", "letters.txt"]).succeeds();
|
ucmd.args(&["-C", "18446744073709551616", "letters.txt"])
|
||||||
|
.succeeds();
|
||||||
assert_eq!(at.read("xaa"), "aaaaaaaaa\nbbbb\ncccc\ndd\nee\n");
|
assert_eq!(at.read("xaa"), "aaaaaaaaa\nbbbb\ncccc\ndd\nee\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue