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

Function test_compatible_size

src/buffer.rs:672–678  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

670
671 #[test]
672 fn test_compatible_size() {
673 // for the cast in PyBuffer::shape()
674 assert_eq!(
675 std::mem::size_of::<crate::Py_ssize_t>(),
676 std::mem::size_of::<usize>()
677 );
678 }
679
680 #[test]
681 fn test_bytes_buffer() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected