1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge branch 'main' into fix-printf-hex-alternate-zero

This commit is contained in:
Sylvestre Ledru 2024-01-15 10:41:09 +01:00 committed by GitHub
commit 4557821adf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 401 additions and 103 deletions

View file

@ -36,6 +36,11 @@ fn escaped_slash() {
.stdout_only("hello\\ world");
}
#[test]
fn unescaped_double_quote() {
new_ucmd!().args(&["\\\""]).succeeds().stdout_only("\"");
}
#[test]
fn escaped_hex() {
new_ucmd!().args(&["\\x41"]).succeeds().stdout_only("A");
@ -665,3 +670,13 @@ fn sub_alternative_upper_hex() {
.succeeds()
.stdout_only("0x2A");
}
#[test]
fn char_as_byte() {
new_ucmd!().args(&["%c", "🙃"]).succeeds().stdout_only("ð");
}
#[test]
fn no_infinite_loop() {
new_ucmd!().args(&["a", "b"]).succeeds().stdout_only("a");
}