defexception ExUnit::AssertionError, message: "assertion failed"

defmodule ExUnit::Assertions do
  def assert_included(base, container) do
    if Erlang.string.str(container, base) == 0 do
      raise ExUnit::AssertionError, message: "Expected #{inspect container} to include #{inspect base}"
    end
  end
end
defexception ExUnit::AssertionError, message: "assertion failed"

defmodule ExUnit::Assertions do
  def assert_included(base, container) do
    if Erlang.string.str(container, base) == 0 do
      raise ExUnit::AssertionError, message: "Expected #{inspect container} to include #{inspect base}"
    end
  end

  def assert_equal(expected, received) do
    if expected != received do
      raise ExUnit::AssertionError, message: "Expected #{inspect received} to be equal to #{inspect expected}"
    end
  end

  def assert(expected) do
    unless expected do
      raise ExUnit::AssertionError, message: "Expected #{inspect expected} to be true"
    end
  end

  def refute(expected) do
    if expected do
      raise ExUnit::AssertionError, message: "Expected #{inspect expected} to be false"
    end
  end
end

Add assert, refute and assert_equal
Add assert, refute and assert_equal

gfvcastro/elixir,beedub/elixir,joshprice/elixir,kimshrier/elixir,pedrosnk/elixir,ggcampinho/elixir,kimshrier/elixir,michalmuskala/elixir,antipax/elixir,antipax/elixir,gfvcastro/elixir,lexmag/elixir,kelvinst/elixir,kelvinst/elixir,elixir-lang/elixir,lexmag/elixir,pedrosnk/elixir,ggcampinho/elixir,beedub/elixir