From 5b8970a2db92b18b94730e66d4e9b1a052c27f1e Mon Sep 17 00:00:00 2001 From: Erik Simmler Date: Wed, 16 Mar 2016 21:38:35 -0400 Subject: [PATCH] Align cherry picked exercises with the new test format --- config.json | 36 +++++++++++-------- elm-package.json | 20 +++++------ exercises/accumulate/Accumulate.elm | 1 + exercises/accumulate/Accumulate.example | 9 +++-- exercises/accumulate/AccumulateTests.elm | 15 ++++---- exercises/accumulate/elm-package.json | 16 +++++++++ exercises/grade-school/GradeSchool.elm | 2 ++ exercises/grade-school/GradeSchool.example | 2 +- exercises/grade-school/GradeSchoolTests.elm | 21 +++++------ exercises/grade-school/elm-package.json | 16 +++++++++ .../nucleotide-count/NucleotideCount.elm | 1 + .../nucleotide-count/NucleotideCount.example | 2 +- .../nucleotide-count/NucleotideCountTests.elm | 16 ++++----- exercises/nucleotide-count/elm-package.json | 16 +++++++++ exercises/phone-number/PhoneNumber.elm | 1 + ...oneNumber.examples => PhoneNumber.example} | 2 +- exercises/phone-number/PhoneNumberTests.elm | 17 ++++----- exercises/phone-number/elm-package.json | 16 +++++++++ exercises/space-age/SpaceAge.elm | 1 + exercises/space-age/SpaceAge.example | 2 +- exercises/space-age/SpaceAgeTests.elm | 17 ++++----- exercises/space-age/elm-package.json | 16 +++++++++ exercises/strain/Strain.elm | 1 + exercises/strain/Strain.example | 2 +- exercises/strain/StrainTests.elm | 17 ++++----- exercises/strain/elm-package.json | 16 +++++++++ exercises/sublist/Sublist.elm | 1 + exercises/sublist/Sublist.example | 2 +- exercises/sublist/SublistTests.elm | 17 ++++----- exercises/sublist/elm-package.json | 16 +++++++++ exercises/sum-of-multiples/SumOfMultiples.elm | 1 + .../sum-of-multiples/SumOfMultiples.example | 2 +- .../sum-of-multiples/SumOfMultiplesTests.elm | 17 ++++----- exercises/sum-of-multiples/elm-package.json | 16 +++++++++ 34 files changed, 247 insertions(+), 106 deletions(-) create mode 100644 exercises/accumulate/Accumulate.elm create mode 100644 exercises/accumulate/elm-package.json create mode 100644 exercises/grade-school/GradeSchool.elm create mode 100644 exercises/grade-school/elm-package.json create mode 100644 exercises/nucleotide-count/NucleotideCount.elm create mode 100644 exercises/nucleotide-count/elm-package.json create mode 100644 exercises/phone-number/PhoneNumber.elm rename exercises/phone-number/{PhoneNumber.examples => PhoneNumber.example} (95%) create mode 100644 exercises/phone-number/elm-package.json create mode 100644 exercises/space-age/SpaceAge.elm create mode 100644 exercises/space-age/elm-package.json create mode 100644 exercises/strain/Strain.elm create mode 100644 exercises/strain/elm-package.json create mode 100644 exercises/sublist/Sublist.elm create mode 100644 exercises/sublist/elm-package.json create mode 100644 exercises/sum-of-multiples/SumOfMultiples.elm create mode 100644 exercises/sum-of-multiples/elm-package.json diff --git a/config.json b/config.json index f31c9c1..2b68954 100644 --- a/config.json +++ b/config.json @@ -5,22 +5,29 @@ "active": false, "test_pattern": "TODO", "problems": [ - "hello-world", - "bob", - "leap", - "raindrops", - "pangram", - "triangle", - "anagram", - "difference-of-squares", - "word-count", - "hamming", - "rna-transcription", - "run-length-encoding" + "hello-world", + "bob", + "leap", + "raindrops", + "pangram", + "accumulate", + "triangle", + "anagram", + "space-age", + "strain", + "difference-of-squares", + "word-count", + "sum-of-multiples", + "hamming", + "rna-transcription", + "run-length-encoding", + "sublist", + "nucleotide-count", + "phone-number", + "grade-school" ], "deprecated": [ - "Leap", - "Accumulate" + ], "ignored": [ "bin", @@ -29,6 +36,5 @@ "docs" ], "foregone": [ - ] } diff --git a/elm-package.json b/elm-package.json index f0c0019..e6a166d 100644 --- a/elm-package.json +++ b/elm-package.json @@ -17,18 +17,14 @@ "./exercises/anagram", "./exercises/raindrops", "./exercises/triangle", - "Leap", - "Accumulate", - "RNATranscription", - "Sublist", - "Bob", - "SumOfMultiples", - "Strain", - "SpaceAge", - "Anagram", - "NucleotideCount", - "PhoneNumber", - "GradeSchool" + "./exercises/accumulate", + "./exercises/sublist", + "./exercises/sum-of-multiples", + "./exercises/strain", + "./exercises/space-age", + "./exercises/nucleotide-count", + "./exercises/phone-number", + "./exercises/grade-school" ], "exposed-modules": [], "dependencies": { diff --git a/exercises/accumulate/Accumulate.elm b/exercises/accumulate/Accumulate.elm new file mode 100644 index 0000000..daf8472 --- /dev/null +++ b/exercises/accumulate/Accumulate.elm @@ -0,0 +1 @@ +module Accumulate (..) where diff --git a/exercises/accumulate/Accumulate.example b/exercises/accumulate/Accumulate.example index 7e74982..7d39e27 100644 --- a/exercises/accumulate/Accumulate.example +++ b/exercises/accumulate/Accumulate.example @@ -1,7 +1,6 @@ -module AccumulateExample where +module Accumulate (..) where + accumulate : (a -> b) -> List a -> List b -accumulate func input = List.map func input - -- case input of - -- [] -> [] - -- otherwise -> +accumulate func input = + List.map func input diff --git a/exercises/accumulate/AccumulateTests.elm b/exercises/accumulate/AccumulateTests.elm index ca4749f..bdc482d 100644 --- a/exercises/accumulate/AccumulateTests.elm +++ b/exercises/accumulate/AccumulateTests.elm @@ -1,11 +1,10 @@ -module AccumulateTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) +import Accumulate exposing (accumulate) -import AccumulateExample exposing (accumulate) -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) import String square : Int -> Int @@ -19,4 +18,6 @@ tests = suite "Accumulate" test "reverse Accumulate" (assertEqual ["olleh","dlrow"] (accumulate String.reverse ["hello" , "world"])) ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) diff --git a/exercises/accumulate/elm-package.json b/exercises/accumulate/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/accumulate/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/grade-school/GradeSchool.elm b/exercises/grade-school/GradeSchool.elm new file mode 100644 index 0000000..b693c89 --- /dev/null +++ b/exercises/grade-school/GradeSchool.elm @@ -0,0 +1,2 @@ +module GradeSchool (..) where + diff --git a/exercises/grade-school/GradeSchool.example b/exercises/grade-school/GradeSchool.example index d71a261..62b2b07 100644 --- a/exercises/grade-school/GradeSchool.example +++ b/exercises/grade-school/GradeSchool.example @@ -1,4 +1,4 @@ -module GradeSchoolExample where +module GradeSchool (..) where import Dict exposing (..) import Result exposing (toMaybe) diff --git a/exercises/grade-school/GradeSchoolTests.elm b/exercises/grade-school/GradeSchoolTests.elm index ad253bc..5b7b266 100644 --- a/exercises/grade-school/GradeSchoolTests.elm +++ b/exercises/grade-school/GradeSchoolTests.elm @@ -1,16 +1,10 @@ -module GradeSchoolTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) --- import GradeSchoolExample exposing (addStudent, --- newSchool, gradeWithStudents, schoolFromList, --- studentsInGrade, schoolToList) - -import GradeSchoolExample as S exposing (..) - -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) +import GradeSchool as S exposing (..) import Dict @@ -28,4 +22,7 @@ tests = suite "GradeSchool Test Suite" test "get students in a non-existent grade" (assertEqual [] (S.studentsInGrade 1 S.newSchool)) ] -main = runDisplay tests + +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) diff --git a/exercises/grade-school/elm-package.json b/exercises/grade-school/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/grade-school/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/nucleotide-count/NucleotideCount.elm b/exercises/nucleotide-count/NucleotideCount.elm new file mode 100644 index 0000000..4dccb71 --- /dev/null +++ b/exercises/nucleotide-count/NucleotideCount.elm @@ -0,0 +1 @@ +module NucleotideCount (..) where diff --git a/exercises/nucleotide-count/NucleotideCount.example b/exercises/nucleotide-count/NucleotideCount.example index 3d706df..09a5f18 100644 --- a/exercises/nucleotide-count/NucleotideCount.example +++ b/exercises/nucleotide-count/NucleotideCount.example @@ -1,4 +1,4 @@ -module NucleotideCountExample where +module NucleotideCount (..) where import String import List diff --git a/exercises/nucleotide-count/NucleotideCountTests.elm b/exercises/nucleotide-count/NucleotideCountTests.elm index 6a64bf9..af5816b 100644 --- a/exercises/nucleotide-count/NucleotideCountTests.elm +++ b/exercises/nucleotide-count/NucleotideCountTests.elm @@ -1,12 +1,10 @@ -module NucleotideCountTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import NucleotideCountExample exposing (nucleotideCounts) - -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) +import NucleotideCount exposing (nucleotideCounts) tests : Test tests = suite "NucleotideCount test suite" @@ -19,4 +17,6 @@ tests = suite "NucleotideCount test suite" (nucleotideCounts "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC")) ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) diff --git a/exercises/nucleotide-count/elm-package.json b/exercises/nucleotide-count/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/nucleotide-count/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/phone-number/PhoneNumber.elm b/exercises/phone-number/PhoneNumber.elm new file mode 100644 index 0000000..076c905 --- /dev/null +++ b/exercises/phone-number/PhoneNumber.elm @@ -0,0 +1 @@ +module PhoneNumber (..) where diff --git a/exercises/phone-number/PhoneNumber.examples b/exercises/phone-number/PhoneNumber.example similarity index 95% rename from exercises/phone-number/PhoneNumber.examples rename to exercises/phone-number/PhoneNumber.example index c7a45d5..df545b5 100644 --- a/exercises/phone-number/PhoneNumber.examples +++ b/exercises/phone-number/PhoneNumber.example @@ -1,4 +1,4 @@ -module PhoneNumberExample where +module PhoneNumber (..) where import String diff --git a/exercises/phone-number/PhoneNumberTests.elm b/exercises/phone-number/PhoneNumberTests.elm index 7657d38..bcf349c 100644 --- a/exercises/phone-number/PhoneNumberTests.elm +++ b/exercises/phone-number/PhoneNumberTests.elm @@ -1,12 +1,10 @@ -module PhoneNumberTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import PhoneNumberExample exposing (getNumber, printPretty) - -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) +import PhoneNumber exposing (getNumber, printPretty) tests : Test tests = suite "PhoneNumber test suite" @@ -25,4 +23,7 @@ tests = suite "PhoneNumber test suite" test "pretty print with full us phone number" (assertEqual "(123) 456-7890" (printPretty "11234567890")) ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) + diff --git a/exercises/phone-number/elm-package.json b/exercises/phone-number/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/phone-number/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/space-age/SpaceAge.elm b/exercises/space-age/SpaceAge.elm new file mode 100644 index 0000000..bb7abc5 --- /dev/null +++ b/exercises/space-age/SpaceAge.elm @@ -0,0 +1 @@ +module SpaceAge (..) where diff --git a/exercises/space-age/SpaceAge.example b/exercises/space-age/SpaceAge.example index 6e7fdd7..bb20926 100644 --- a/exercises/space-age/SpaceAge.example +++ b/exercises/space-age/SpaceAge.example @@ -1,4 +1,4 @@ -module SpaceAgeExample where +module SpaceAge (..) where type Planet = Mercury | Venus diff --git a/exercises/space-age/SpaceAgeTests.elm b/exercises/space-age/SpaceAgeTests.elm index 6d60a45..5b5f09e 100644 --- a/exercises/space-age/SpaceAgeTests.elm +++ b/exercises/space-age/SpaceAgeTests.elm @@ -1,12 +1,10 @@ -module SpaceAgeTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) - -import SpaceAgeExample exposing (Planet(..), ageOn) +import SpaceAge exposing (Planet(..), ageOn) tests : Test tests = suite "SpaceAge Test Suite" @@ -22,4 +20,7 @@ tests = suite "SpaceAge Test Suite" ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) + diff --git a/exercises/space-age/elm-package.json b/exercises/space-age/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/space-age/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/strain/Strain.elm b/exercises/strain/Strain.elm new file mode 100644 index 0000000..f9a33e6 --- /dev/null +++ b/exercises/strain/Strain.elm @@ -0,0 +1 @@ +module Strain (..) where diff --git a/exercises/strain/Strain.example b/exercises/strain/Strain.example index 12454fa..2ca47bb 100644 --- a/exercises/strain/Strain.example +++ b/exercises/strain/Strain.example @@ -1,4 +1,4 @@ -module StrainExample where +module Strain (..) where import List diff --git a/exercises/strain/StrainTests.elm b/exercises/strain/StrainTests.elm index 992581a..ca04c3b 100644 --- a/exercises/strain/StrainTests.elm +++ b/exercises/strain/StrainTests.elm @@ -1,12 +1,10 @@ -module StrainTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) - -import StrainExample exposing (keep, discard) +import Strain exposing (keep, discard) import String @@ -31,4 +29,7 @@ tests = suite "Strain Test Suite" test "discard strings" (assertEqual ["apple", "banana", "cherimoya"] (discard (isFirstLetter "z") ["apple", "zebra", "banana", "zombies", "cherimoya", "zealot"])) ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) + diff --git a/exercises/strain/elm-package.json b/exercises/strain/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/strain/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/sublist/Sublist.elm b/exercises/sublist/Sublist.elm new file mode 100644 index 0000000..53ce299 --- /dev/null +++ b/exercises/sublist/Sublist.elm @@ -0,0 +1 @@ +module Sublist (..) where diff --git a/exercises/sublist/Sublist.example b/exercises/sublist/Sublist.example index f96f92a..e253e80 100644 --- a/exercises/sublist/Sublist.example +++ b/exercises/sublist/Sublist.example @@ -1,4 +1,4 @@ -module SublistExample where +module Sublist (..) where import List exposing (..) import String diff --git a/exercises/sublist/SublistTests.elm b/exercises/sublist/SublistTests.elm index b18c342..2e59d28 100644 --- a/exercises/sublist/SublistTests.elm +++ b/exercises/sublist/SublistTests.elm @@ -1,12 +1,10 @@ -module SublistTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) - -import SublistExample exposing (sublist) +import Sublist exposing (sublist) tests : Test tests = suite "Sublist Test Suite" @@ -30,4 +28,7 @@ tests = suite "Sublist Test Suite" test "recurring values unequal" (assertEqual "Unequal" (sublist [1,2,1,2,3] [1,2,3,1,2,3,2,3,2,1])) ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) + diff --git a/exercises/sublist/elm-package.json b/exercises/sublist/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/sublist/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +} diff --git a/exercises/sum-of-multiples/SumOfMultiples.elm b/exercises/sum-of-multiples/SumOfMultiples.elm new file mode 100644 index 0000000..c4c1dbd --- /dev/null +++ b/exercises/sum-of-multiples/SumOfMultiples.elm @@ -0,0 +1 @@ +module SumOfMultiples (..) where diff --git a/exercises/sum-of-multiples/SumOfMultiples.example b/exercises/sum-of-multiples/SumOfMultiples.example index c33a8a0..08bb6ac 100644 --- a/exercises/sum-of-multiples/SumOfMultiples.example +++ b/exercises/sum-of-multiples/SumOfMultiples.example @@ -1,4 +1,4 @@ -module SumOfMultiplesExample where +module SumOfMultiples (..) where sumOfMultiples : List Int -> Int -> Int sumOfMultiples factors upperLimit = diff --git a/exercises/sum-of-multiples/SumOfMultiplesTests.elm b/exercises/sum-of-multiples/SumOfMultiplesTests.elm index bfb962e..f4deef3 100644 --- a/exercises/sum-of-multiples/SumOfMultiplesTests.elm +++ b/exercises/sum-of-multiples/SumOfMultiplesTests.elm @@ -1,12 +1,10 @@ -module SumOfMultiplesTest where +module Main (..) where --- TODO - remove example inclusion once Problem sets are ready to go live or CI is set up. +import Task +import Console +import ElmTest exposing (..) -import ElmTest.Test exposing (test, Test, suite) -import ElmTest.Assertion exposing (assert, assertEqual) -import ElmTest.Runner.Element exposing (runDisplay) - -import SumOfMultiplesExample exposing (sumOfMultiples) +import SumOfMultiples exposing (sumOfMultiples) tests : Test tests = suite "Sum Of Multiples Test Suite" @@ -19,4 +17,7 @@ tests = suite "Sum Of Multiples Test Suite" ] -main = runDisplay tests +port runner : Signal (Task.Task x ()) +port runner = + Console.run (consoleRunner tests) + diff --git a/exercises/sum-of-multiples/elm-package.json b/exercises/sum-of-multiples/elm-package.json new file mode 100644 index 0000000..d93a035 --- /dev/null +++ b/exercises/sum-of-multiples/elm-package.json @@ -0,0 +1,16 @@ +{ + "version": "1.0.0", + "summary": "Exercism problems in Elm.", + "repository": "https://github.com/exercism/xelm.git", + "license": "BSD3", + "source-directories": [ + "." + ], + "exposed-modules": [], + "dependencies": { + "deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0", + "elm-lang/core": "2.0.0 <= v < 4.0.0", + "laszlopandy/elm-console": "1.1.0 <= v < 2.0.0" + }, + "elm-version": "0.15.0 <= v < 0.17.0" +}