Skip to content

Commit 9291262

Browse files
Added comment about using -- with lists
1 parent 2adaaa5 commit 9291262

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/integration/skill_controller_search_test.exs

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ defmodule SkillControllerSearchIntegrationTest do
2626

2727
test "fuzzy search partial word" do
2828
results = ElasticSearchHelper.search(@test_url, @test_index, "title", "rj")
29+
# Two lists can be concatenated or subtracted using the ++/2 and --/2
30+
# see: http://elixir-lang.org/getting-started/basic-types.html#linked-lists
31+
# This allows us to confirm the values we want regardless of the order the values are returned in.
2932
assert results -- ["Ruby", "Rails"] == []
3033
end
3134

0 commit comments

Comments
 (0)