diff --git a/spec/pycall/pyobject_wrapper_spec.rb b/spec/pycall/pyobject_wrapper_spec.rb index 5b37c70..e67570b 100644 --- a/spec/pycall/pyobject_wrapper_spec.rb +++ b/spec/pycall/pyobject_wrapper_spec.rb @@ -161,7 +161,7 @@ module PyCall list = PyCall::List.new([*1..10]) expect(list[(1..-1).step(2)]).to eq(PyCall::List.new([2, 4, 6, 8, 10])) expect(list[(1..-2).step(2)]).to eq(PyCall::List.new([2, 4, 6, 8])) - expect(list[(nil..nil).step(-1)]).to eq(PyCall::List.new([*1..10].reverse)) + expect(list[(10..1).step(-1)]).to eq(PyCall::List.new([*1..10].reverse)) expect(list[(-1..0).step(-1)]).to eq(PyCall::List.new([*1..10].reverse)) expect(list[(-1...0).step(-1)]).to eq(PyCall::List.new([*2..10].reverse)) expect(list[(-2..2).step(-2)]).to eq(PyCall::List.new([9, 7, 5, 3]))