ExUnit Syntax Flashcards
1
Q
define test module with doctests
A
1 defmodule Counter.CoreTest do 2 use ExUnit.Case, async: true 3 alias Counter.Core 4 doctest Core 5 6 describe "inc/1" do 7 test "it adds 1 to a value" do 8 assert Core.increment(1) == 2 9 end 10 end 11 end