Skip to content

Instantly share code, notes, and snippets.

@bsmr
Last active August 29, 2015 14:23
Show Gist options
  • Save bsmr/6150246ec441aba14af0 to your computer and use it in GitHub Desktop.
Save bsmr/6150246ec441aba14af0 to your computer and use it in GitHub Desktop.

Revisions

  1. bsmr renamed this gist Jun 23, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. bsmr renamed this gist Jun 23, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. bsmr created this gist Jun 23, 2015.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    ==> elixir (exunit)

    1) test update maps (MapTest)
    test/elixir/map_test.exs:45
    Expected exception ArgumentError but got ErlangError (erlang error: {:badkey, :c})
    stacktrace:
    test/elixir/map_test.exs:48


    2) test protocol defines callbacks (ProtocolTest)
    test/elixir/protocol_test.exs:123
    Assertion with == failed
    code: get_callbacks(Sample, :ok, 1) == [{:type, 9, :fun, [{:type, 9, :product, [{:user_type, 9, :t, []}]}, {:type, 9, :boolean, []}]}]
    lhs: [{:type, '\t', :fun, [{:type, '\t', :product, [{:user_type, '\t', :t, []}]}, {:type, '\t', :boolean, []}]}]
    rhs: [{:type, 9, :fun, [{:type, 9, :product, [{:user_type, 9, :t, []}]}, {:type, 9, :boolean, []}]}]
    stacktrace:
    test/elixir/protocol_test.exs:125