diff --git a/tests/python.rs b/tests/python.rs index 97ba7540..2250bd9d 100644 --- a/tests/python.rs +++ b/tests/python.rs @@ -270,6 +270,16 @@ fn test_cache_into() { }) } +#[test] +fn test_use_tape() { + let json = r#" "foo\nbar" "#; + Python::with_gil(|py| { + cache_clear(py); + let obj = python_parse(py, json.as_bytes(), false, StringCacheMode::None, false).unwrap(); + assert_eq!(obj.to_string(), "foo\nbar"); + }) +} + #[test] fn test_unicode() { let json = r#"{"💩": "£"}"#;