MCPcopy Create free account
hub / github.com/davisking/dlib / test_range_wrong_order

Function test_range_wrong_order

tools/python/test/test_range.py:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24# TODO: make this init parameterization an exception?
25def test_range_wrong_order():
26 r = range(5, 0)
27 assert r.begin == 5
28 assert r.end == 0
29 assert str(r) == "5, 0"
30 assert repr(r) == "dlib.range(5, 0)"
31 assert len(r) == 0
32
33
34def test_range_with_negative_elements():

Callers

nothing calls this directly

Calls 4

rangeFunction · 0.90
strClass · 0.85
reprFunction · 0.85
lenFunction · 0.85

Tested by

no test coverage detected