def test_slice_in_array(start, end, step, data, expect): jp = Root().Array(Slice(start, end, step)) assert jp.find(data) == expect
def test_slice(start, end, step, data, expect): jp = Root().Slice(start, end, step) assert jp.find(data) == expect