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

Function test_greedy_string_overload

tests/test_numpy_array.py:421–426  ·  view source on GitHub ↗

Tests fix for #685 - ndarray shouldn't go to std::string overload

()

Source from the content-addressed store, hash-verified

419
420
421def test_greedy_string_overload():
422 """Tests fix for #685 - ndarray shouldn't go to std::string overload"""
423
424 assert m.issue685("abc") == "string"
425 assert m.issue685(np.array([97, 98, 99], dtype="b")) == "array"
426 assert m.issue685(123) == "other"
427
428
429def test_array_unchecked_fixed_dims(msg):

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.80

Tested by

no test coverage detected