Permalink
Browse files

Test that Enum.join does not work for dicts

  • Loading branch information...
1 parent 51d1f12 commit 25f5fa69cf4f6baf8dc35e8717198971ea88f21d @alco committed Apr 18, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 test/elixir/enum_test.exs
@@ -377,9 +377,14 @@ defmodule EnumTest.Orddict do
assert_equal short_dict, Enum.drop_while dict, fn({_k, v}, do: v < 3)
end
- test :join_binary do
+ test :join do
dict = Orddict.new [:a, :b, :c], [1, 2, 3]
- assert_equal "{a,1} . {b,2} . {c,3}", Enum.join dict, " . "
+ assert_raises UndefinedFunctionError, fn ->
+ Enum.join dict, ","
+ end
+ assert_raises UndefinedFunctionError, fn ->
+ Enum.join dict, ','
+ end
end
test :split do

0 comments on commit 25f5fa6

Please sign in to comment.