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

Function test_round_trip_float

tests/test_numpy_array.py:645–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643
644
645def test_round_trip_float():
646 arr = np.zeros((), np.float64)
647 arr[()] = 37.2
648 assert m.round_trip_float(arr) == 37.2
649
650
651# HINT: An easy and robust way (although only manual unfortunately) to check for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected