aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx_string.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cxx_string.rs')
-rw-r--r--tests/cxx_string.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cxx_string.rs b/tests/cxx_string.rs
index be693cd2..67444fa5 100644
--- a/tests/cxx_string.rs
+++ b/tests/cxx_string.rs
@@ -13,3 +13,10 @@ fn test_async_cxx_string() {
fn assert_send(_: impl Send) {}
assert_send(f());
}
+
+#[test]
+fn test_debug() {
+ let_cxx_string!(s = "x\"y\'z");
+
+ assert_eq!(format!("{:?}", s), r#""x\"y'z""#);
+}