Created
November 17, 2017 17:53
-
-
Save obliviusm/0cde5aa48f09fc601b5c639e88c6f050 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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