We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A test such as the following one fails. When retrieving the elements with lrange, they come out in reverse order.
@Test public void lpushShouldPushToTheFrontOfAList() { // given MockJedis jedis = new MockJedis("localhost"); jedis.lpush("list", "c"); jedis.lpush("list", "b"); jedis.lpush("list", "a"); // when List<String> list = jedis.lrange("list", 0, -1); // then assertThat(list, is(asList("a", "b", "c"))); }
I guess the root of the bug is in com.fiftyonred.mock_jedis.MockStorage#lpush where values are added via Collections.addAll.
The text was updated successfully, but these errors were encountered:
I encountered this as well but just saw your issue. I resolved it in the Centricient fork of this project.
Sorry, something went wrong.
No branches or pull requests
A test such as the following one fails. When retrieving the elements with lrange, they come out in reverse order.
I guess the root of the bug is in com.fiftyonred.mock_jedis.MockStorage#lpush where values are added via Collections.addAll.
The text was updated successfully, but these errors were encountered: