1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #3060 from hbina/hbina-add-test-for-additional-escape

test_printf: add test for additional escape (\c)
This commit is contained in:
Sylvestre Ledru 2022-02-04 21:44:08 +01:00 committed by GitHub
commit 13dbb2ce12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -429,3 +429,11 @@ fn sub_any_specifiers_after_second_param() {
.succeeds()
.stdout_only("3");
}
#[test]
fn stop_after_additional_escape() {
new_ucmd!()
.args(&["A%sC\\cD%sF", "B", "E"]) //spell-checker:disable-line
.succeeds()
.stdout_only("ABC");
}