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:
commit
4557821adf
34 changed files with 401 additions and 103 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue