Consider using doctests. :) The only downside is that you will need to convert sets to lists in order to make assertions in the doctest. Something like:

    iex> Set.union(Set.new([1,2]), Set.new([2,3,4])) |> Set.to_list
    [1,2,3,4]