mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
head: fix 'test_spams_newline' to check *against* newline spam
The comment was introduced in commit8320b1ec5f
, the test was introduced in commitc1f518e586
claiming to be about "failing GNU head tests". However, a simple check reveals no such difference: ```console $ echo -n a | hd 00000000 61 |a| 00000001 $ echo -n a | head | hd # GNU head 00000000 61 |a| 00000001 $ echo -n a | cargo run -- head | hd 00000000 61 |a| 00000001 $ echo -n a | busybox head | hd 00000000 61 |a| 00000001 $ ``` Looking at the GNU tests directly, it seems that there is a similar, but different test.
This commit is contained in:
parent
69ea02d9b0
commit
e50eb19056
1 changed files with 1 additions and 3 deletions
|
@ -99,10 +99,8 @@ fn test_verbose() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
|
||||||
fn test_spams_newline() {
|
fn test_spams_newline() {
|
||||||
//this test is does not mirror what GNU does
|
new_ucmd!().pipe_in("a").succeeds().stdout_is("a");
|
||||||
new_ucmd!().pipe_in("a").succeeds().stdout_is("a\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue