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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly