Aridade
defmodule MathTest do
use ExUnit.Case
describe "multiple/2" do
test "success: return the result" do
assert Math.multiple(3, 5) == 15
end
end
endmix test test/math_test.exs
warning: Math.multiple/2 is undefined or private
test/math_test.exs:6: MathTest."test multiple/2 success: return the result"/1
1) test multiple/2 success: return the result (MathTest)
test/math_test.exs:5
** (UndefinedFunctionError) function Math.multiple/2 is undefined or private
code: assert Math.multiple(3, 5) == 15
stacktrace:
(hello_world 0.1.0) Math.multiple(3, 5)
test/math_test.exs:6: (test)
Finished in 0.02 seconds (0.00s async, 0.02s sync)
1 test, 1 failureConclusão
Last updated