Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ test_slice_constructors
Function
test_slice_constructors
tests/test_sequences_and_iterators.py:13–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
12
13
def
test_slice_constructors():
14
assert m.make_forward_slice_size_t() == slice(0, -1, 1)
15
assert m.make_reversed_slice_object() == slice(None, None, -1)
16
17
18
@pytest.mark.skipif(not m.has_optional, reason=
"no <optional>"
)
Callers
nothing calls this directly
Calls
1
slice
Class · 0.85
Tested by
no test coverage detected