mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
test(printf): Add test for escaped octal then newline
This commit is contained in:
parent
11c20b7686
commit
cd1e764581
1 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,14 @@ fn escaped_octal() {
|
|||
new_ucmd!().args(&["\\101"]).succeeds().stdout_only("A");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn escaped_octal_and_newline() {
|
||||
new_ucmd!()
|
||||
.args(&["\\0377\\n"])
|
||||
.succeeds()
|
||||
.stdout_only("\x1F7\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn escaped_unicode_four_digit() {
|
||||
new_ucmd!().args(&["\\u0125"]).succeeds().stdout_only("ĥ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue