Skip to content

Instantly share code, notes, and snippets.

@obliviusm
Created November 17, 2017 17:53
Show Gist options
  • Select an option

  • Save obliviusm/0cde5aa48f09fc601b5c639e88c6f050 to your computer and use it in GitHub Desktop.

Select an option

Save obliviusm/0cde5aa48f09fc601b5c639e88c6f050 to your computer and use it in GitHub Desktop.
defmodule TestShepherd do
use ExUnit.Case
import Shepherd, only: [count_sheeps: 1]
test "work for some examples" do
assert count_sheeps([]) == 0
assert count_sheeps([true]) == 1
assert count_sheeps([true, false]) == 1
assert count_sheeps([false, false]) == 0
assert count_sheeps(
[true, true, true, false,
true, true, true, true ,
true, false, true, false,
true, false, false, true]) == 11
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment