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

Function test_display_string

src/objectprotocol.rs:375–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374 #[test]
375 fn test_display_string() {
376 let gil = Python::acquire_gil();
377 let py = gil.python();
378 let v = "Hello\n".to_py_object(py).into_object();
379 assert_eq!(format!("{}", v), "Hello\n");
380 }
381
382 #[test]
383 fn test_compare() {

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