diff --git a/tests/by-util/test_printf.rs b/tests/by-util/test_printf.rs index 5a74aa724..7573b5fb9 100644 --- a/tests/by-util/test_printf.rs +++ b/tests/by-util/test_printf.rs @@ -190,6 +190,11 @@ fn sub_num_int_char_const_in() { .args(&["ninety seven is %i", "'a"]) .succeeds() .stdout_only("ninety seven is 97"); + + new_ucmd!() + .args(&["emoji is %i", "'🙃"]) + .succeeds() + .stdout_only("emoji is 128579"); } #[test]