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

Function reversed

tests/test_class.rs:737–743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

735
736#[test]
737fn reversed() {
738 let gil = Python::acquire_gil();
739 let py = gil.python();
740
741 let c = Reversed::create_instance(py).unwrap();
742 py_run!(py, c, "assert reversed(c) == 'I am reversed'");
743}
744
745py_class!(class Contains |py| {
746 def __contains__(&self, item: i32) -> PyResult<bool> {

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected