Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added one more test case

  • Loading branch information...
commit 3262c67d259570f6e8ff448b6d3170a37cd1f982 1 parent 8481e54
Rodrigo Flores authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 dojo-20120313/test/solution_test.exs
View
5 dojo-20120313/test/solution_test.exs
@@ -31,4 +31,9 @@ defmodule SolutionTest do
list = ["blal", "ball"]
assert_equal ["blal", "ball"], Anagram.anagram_of("blal", list)
end
+
+ test "returns only the matching anagrams" do
+ list = ["ball", "icecream", "blal"]
+ assert_equal ["ball", "blal"], Anagram.anagram_of("llab", list)
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.