mirror of
https://github.com/correl/elm.git
synced 2024-12-22 11:09:08 +00:00
Merge pull request #153 from iamvery/triangle-version-test
Add version test to triangle exercise
This commit is contained in:
commit
2125fcf43c
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue