Answers for "Use in Elxir"

0

Use in Elxir

# When you use a module,
# you allow that module to inject any code in the current module,
# such as importing itself or other modules,
# defining new functions, 
# setting a module state, etc.

defmodule AssertionTest do
  use ExUnit.Case, async: true

  test "always pass" do
    assert true
  end
end
Posted by: Guest on September-01-2021

Browse Popular Code Answers by Language