Skip to content

Commit

Permalink
Added comment about using -- with lists
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsullivanjr committed Mar 26, 2017
1 parent 2adaaa5 commit 9291262
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/skill_controller_search_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ defmodule SkillControllerSearchIntegrationTest do

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

Expand Down

0 comments on commit 9291262

Please sign in to comment.