MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_docs

Function test_docs

tests/test_docs_advanced_cast_custom.py:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_docs() -> None:
35 ###########################################################################
36 # PLEASE UPDATE docs/advanced/cast/custom.rst IF ANY CHANGES ARE MADE HERE.
37 ###########################################################################
38 point1 = [1.0, -1.0]
39 point2 = m.negate(point1)
40 assert point2 == (-1.0, 1.0)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected