Skip to content

Commit

Permalink
Fix an Elixir range warning in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Mar 4, 2024
1 parent 33cd538 commit e08907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/results_test.exs
Expand Up @@ -58,7 +58,7 @@ defmodule ResultsTest do
refute Enum.member?(page, %{"other_name" => "stream1"})

assert Enum.slice(page, 0..1) == [%{"name" => "stream1"}, %{"name" => "stream2"}]
assert Enum.slice(page, 0..-2) == [%{"name" => "stream1"}, %{"name" => "stream2"}]
assert Enum.slice(page, 0..-2//1) == [%{"name" => "stream1"}, %{"name" => "stream2"}]
end

# Regression test for https://github.com/lexhide/xandra/issues/187.
Expand Down

0 comments on commit e08907a

Please sign in to comment.