mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
fix minrustv build error
This commit is contained in:
@@ -247,21 +247,21 @@ hello
|
||||
|
||||
#[test]
|
||||
fn test_bad_utf8() {
|
||||
let bytes = b"\xfc\x80\x80\x80\x80\xaf";
|
||||
let bytes: &[u8] = b"\xfc\x80\x80\x80\x80\xaf";
|
||||
new_ucmd!()
|
||||
.args(&["-c", "6"])
|
||||
.pipe_in(*bytes)
|
||||
.pipe_in(bytes)
|
||||
.succeeds()
|
||||
.stdout_is_bytes(bytes);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bad_utf8_lines() {
|
||||
let input = b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf";
|
||||
let input: &[u8] = b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf";
|
||||
let output = b"\xfc\x80\x80\x80\x80\xaf\nb\xfc\x80\x80\x80\x80\xaf\n";
|
||||
new_ucmd!()
|
||||
.args(&["-n", "2"])
|
||||
.pipe_in(*input)
|
||||
.pipe_in(input)
|
||||
.succeeds()
|
||||
.stdout_is_bytes(output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user