Exercism Elixir: triangle test, multi-clause