()
| 23 | print(f'{index}: {sequence[index] if status(index)>=0 else None}') |
| 24 | |
| 25 | def 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 | |
| 36 | if __name__ == '__main__': |
| 37 | test_sequence() |
no test coverage detected