MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / test_sequence

Function test_sequence

memory_graph/test_sequence.py:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 print(f'{index}: {sequence[index] if status(index)>=0 else None}')
24
25def test_sequence():
26 sequence = Sequence1D([i for i in range(8)])
27 slicer = Slicer(2,3)
28 test_slicing(sequence, slicer)
29
30 width = 5
31 height = 6
32 sequence = Sequence2D([[x+y*width for x in range(width)] for y in range(height)])
33 slicer = (Slicer(1,2), Slicer(2,1))
34 test_slicing(sequence, slicer)
35
36if __name__ == '__main__':
37 test_sequence()

Callers 1

test_sequence.pyFile · 0.85

Calls 4

Sequence1DClass · 0.90
SlicerClass · 0.90
Sequence2DClass · 0.90
test_slicingFunction · 0.85

Tested by

no test coverage detected