defmodule Solve do def sum(a, b), do: a+b end
sum = fn(a, b) -> a + b endsum.(2,3)- defmodule Solve do
- def sum(a, b), do: a+b
- end
# TODO: Replace examples and use TDD by writing your own tests defmodule TestSolution do use ExUnit.Case test "some test description" do assert Solve.sum(2,3) == 5 end end
- # TODO: Replace examples and use TDD by writing your own tests
- defmodule TestSolution do
- use ExUnit.Case
- test "some test description" do
- assert Solve.sum(2,3) == 5
- end
- end