From 183847554f716a3a77ce1b8a802c2ec5e28fdb58 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Thu, 6 Jul 2017 07:19:14 -0500 Subject: [PATCH 1/2] Add version test to triangle exercise This follows the pattern set by some of the other exercises. --- exercises/triangle/tests/Tests.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/triangle/tests/Tests.elm b/exercises/triangle/tests/Tests.elm index 861d60e..9c4842e 100644 --- a/exercises/triangle/tests/Tests.elm +++ b/exercises/triangle/tests/Tests.elm @@ -8,7 +8,9 @@ import Triangle exposing (triangleKind, Triangle(..)) 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) From fff2196a6df65888cf53268c379e47c7579915b2 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Fri, 7 Jul 2017 12:24:16 -0500 Subject: [PATCH 2/2] Expose version func from Triangle module to tests --- exercises/triangle/tests/Tests.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/triangle/tests/Tests.elm b/exercises/triangle/tests/Tests.elm index 9c4842e..03e1ffb 100644 --- a/exercises/triangle/tests/Tests.elm +++ b/exercises/triangle/tests/Tests.elm @@ -2,7 +2,7 @@ module Tests exposing (..) import Test exposing (..) import Expect -import Triangle exposing (triangleKind, Triangle(..)) +import Triangle exposing (triangleKind, Triangle(..), version) tests : Test