2017-05-27 17:56:31 +00:00
|
|
|
module Tests exposing (..)
|
2015-10-13 18:23:46 +00:00
|
|
|
|
2016-08-17 11:14:17 +00:00
|
|
|
import Test exposing (..)
|
|
|
|
import Expect
|
2016-03-17 01:38:35 +00:00
|
|
|
import SumOfMultiples exposing (sumOfMultiples)
|
2015-10-13 18:23:46 +00:00
|
|
|
|
2016-03-17 01:38:51 +00:00
|
|
|
|
2015-10-13 18:23:46 +00:00
|
|
|
tests : Test
|
2016-03-17 01:38:51 +00:00
|
|
|
tests =
|
2016-08-17 11:14:17 +00:00
|
|
|
describe "Sum Of Multiples"
|
|
|
|
[ test "[3, 5] 15" <|
|
|
|
|
\() -> Expect.equal 45 (sumOfMultiples [ 3, 5 ] 15)
|
2017-07-05 20:35:15 +00:00
|
|
|
, skip <|
|
|
|
|
test "[7, 13, 17] 20" <|
|
|
|
|
\() -> Expect.equal 51 (sumOfMultiples [ 7, 13, 17 ] 20)
|
|
|
|
, skip <|
|
|
|
|
test "[4, 6] 15" <|
|
|
|
|
\() -> Expect.equal 30 (sumOfMultiples [ 4, 6 ] 15)
|
|
|
|
, skip <|
|
|
|
|
test "[5, 6, 8] 150" <|
|
|
|
|
\() -> Expect.equal 4419 (sumOfMultiples [ 5, 6, 8 ] 150)
|
|
|
|
, skip <|
|
|
|
|
test "[43, 47] 10000" <|
|
|
|
|
\() -> Expect.equal 2203160 (sumOfMultiples [ 43, 47 ] 10000)
|
|
|
|
, skip <|
|
|
|
|
test "[5, 25] 51" <|
|
|
|
|
\() -> Expect.equal 275 (sumOfMultiples [ 5, 25 ] 51)
|
2016-06-19 21:46:13 +00:00
|
|
|
]
|