MCPcopy Create free account
hub / github.com/PyO3/pyo3 / test_vec_from_array

Function test_vec_from_array

pytests/tests/test_sequence.py:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def test_vec_from_array():
23 # binary numpy wheel not available on all platforms
24 numpy = pytest.importorskip("numpy")
25
26 assert sequence.vec_to_vec_i32(numpy.array([1, 2, 3])) == [1, 2, 3]
27
28
29def test_rust_array_from_array():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected