This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added one more test case

  • Loading branch information...
Rodrigo Flores
Rodrigo Flores committed Mar 13, 2012
1 parent 8481e54 commit 3262c67d259570f6e8ff448b6d3170a37cd1f982
Showing with 5 additions and 0 deletions.
  1. +5 −0 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

0 comments on commit 3262c67

Please sign in to comment.