Merge pull request #153 from iamvery/triangle-version-test

Add version test to triangle exercise
This commit is contained in:
Erik Simmler 2017-07-07 20:09:12 -04:00 committed by GitHub
commit 2125fcf43c

View file

@ -2,13 +2,15 @@ module Tests exposing (..)
import Test exposing (..)
import Expect
import Triangle exposing (triangleKind, Triangle(..))
import Triangle exposing (triangleKind, Triangle(..), version)
tests : Test
tests =
describe "triangleKind"
[ test "equilateral triangles have equal sides" <|
[ test "the solution is for the correct version of the test" <|
\() -> Expect.equal 2 version
, test "equilateral triangles have equal sides" <|
\() -> Expect.equal (Ok Equilateral) (triangleKind 2 2 2)
, test "larger equilateral triangles also have equal sides" <|
\() -> Expect.equal (Ok Equilateral) (triangleKind 10 10 10)