MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / test_non_bmp

Function test_non_bmp

src/objects/string.rs:573–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

571
572 #[test]
573 fn test_non_bmp() {
574 let gil = Python::acquire_gil();
575 let py = gil.python();
576 let s = "\u{1F30F}";
577 let py_string = s.to_py_object(py).into_object();
578 assert_eq!(s, py_string.extract::<String>(py).unwrap());
579 }
580
581 #[test]
582 fn test_extract_str() {

Callers

nothing calls this directly

Calls 3

pythonMethod · 0.80
into_objectMethod · 0.45
to_py_objectMethod · 0.45

Tested by

no test coverage detected