MCPcopy
hub / github.com/Textualize/rich / test_divide_edge

Function test_divide_edge

tests/test_segment.py:239–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237
238
239def test_divide_edge():
240 segments = [Segment("foo"), Segment("bar"), Segment("baz")]
241 result = list(Segment.divide(segments, [1, 3, 9]))
242 print(result)
243 assert result == [
244 [Segment("f")],
245 [Segment("oo")],
246 [Segment("bar"), Segment("baz")],
247 ]
248
249
250def test_divide_edge_2():

Callers

nothing calls this directly

Calls 3

SegmentClass · 0.90
printFunction · 0.50
divideMethod · 0.45

Tested by

no test coverage detected