From 3b357181965dbb5d9cdf65bf2a063036b6c0cf9a Mon Sep 17 00:00:00 2001 From: Erik Simmler Date: Sat, 17 Dec 2016 14:28:59 -0500 Subject: [PATCH] Update exercise support files to npm + elm 0.18 --- bin/build.sh | 4 ++-- .../{Accumulate.example => Accumulate.example.elm} | 0 .../accumulate/{AccumulateTests.elm => Tests.elm} | 4 ++-- exercises/accumulate/package.json | 13 +++++++++++++ exercises/accumulate/runtests.bat | 1 - exercises/accumulate/runtests.sh | 2 -- .../{Allergies.example => Allergies.example.elm} | 0 .../allergies/{AllergiesTests.elm => Tests.elm} | 4 ++-- exercises/allergies/package.json | 13 +++++++++++++ exercises/allergies/runtests.bat | 1 - exercises/allergies/runtests.sh | 2 -- .../{Anagram.example => Anagram.example.elm} | 0 exercises/anagram/{AnagramTests.elm => Tests.elm} | 4 ++-- exercises/anagram/package.json | 13 +++++++++++++ exercises/anagram/runtests.bat | 1 - exercises/anagram/runtests.sh | 2 -- ...tbashCipher.example => AtbashCipher.example.elm} | 0 .../{AtbashCipherTests.elm => Tests.elm} | 4 ++-- exercises/atbash-cipher/package.json | 13 +++++++++++++ exercises/atbash-cipher/runtests.bat | 1 - exercises/atbash-cipher/runtests.sh | 2 -- exercises/bob/{Bob.example => Bob.example.elm} | 0 exercises/bob/{BobTests.elm => Tests.elm} | 4 ++-- exercises/bob/package.json | 13 +++++++++++++ exercises/bob/runtests.bat | 1 - exercises/bob/runtests.sh | 2 -- ...ares.example => DifferenceOfSquares.example.elm} | 0 .../{DifferenceOfSquaresTests.elm => Tests.elm} | 4 ++-- exercises/difference-of-squares/package.json | 13 +++++++++++++ exercises/difference-of-squares/runtests.bat | 1 - exercises/difference-of-squares/runtests.sh | 2 -- .../{Gigasecond.example => Gigasecond.example.elm} | 0 .../gigasecond/{GigasecondTests.elm => Tests.elm} | 4 ++-- exercises/gigasecond/package.json | 13 +++++++++++++ exercises/gigasecond/runtests.bat | 1 - exercises/gigasecond/runtests.sh | 2 -- ...{GradeSchool.example => GradeSchool.example.elm} | 0 .../{GradeSchoolTests.elm => Tests.elm} | 4 ++-- exercises/grade-school/package.json | 13 +++++++++++++ exercises/grade-school/runtests.bat | 1 - exercises/grade-school/runtests.sh | 2 -- .../{Hamming.example => Hamming.example.elm} | 0 exercises/hamming/{HammingTests.elm => Tests.elm} | 4 ++-- exercises/hamming/package.json | 13 +++++++++++++ exercises/hamming/runtests.bat | 1 - exercises/hamming/runtests.sh | 2 -- ...uct.example => LargestSeriesProduct.example.elm} | 0 .../{LargestSeriesProductTests.elm => Tests.elm} | 4 ++-- exercises/largest-series-product/package.json | 13 +++++++++++++ exercises/largest-series-product/runtests.bat | 1 - exercises/largest-series-product/runtests.sh | 2 -- exercises/leap/{Leap.example => Leap.example.elm} | 0 exercises/leap/{LeapTests.elm => Tests.elm} | 4 ++-- exercises/leap/package.json | 13 +++++++++++++ exercises/leap/runtests.bat | 1 - exercises/leap/runtests.sh | 2 -- .../{ListOps.example => ListOps.example.elm} | 0 exercises/list-ops/{ListOpsTests.elm => Tests.elm} | 4 ++-- exercises/list-ops/package.json | 13 +++++++++++++ exercises/list-ops/runtests.bat | 1 - exercises/list-ops/runtests.sh | 2 -- ...ideCount.example => NucleotideCount.example.elm} | 0 .../{NucleotideCountTests.elm => Tests.elm} | 4 ++-- exercises/nucleotide-count/package.json | 13 +++++++++++++ exercises/nucleotide-count/runtests.bat | 1 - exercises/nucleotide-count/runtests.sh | 2 -- .../{Pangram.example => Pangram.example.elm} | 0 exercises/pangram/{PangramTests.elm => Tests.elm} | 4 ++-- exercises/pangram/package.json | 13 +++++++++++++ exercises/pangram/runtests.bat | 1 - exercises/pangram/runtests.sh | 2 -- ...{PhoneNumber.example => PhoneNumber.example.elm} | 0 .../{PhoneNumberTests.elm => Tests.elm} | 4 ++-- exercises/phone-number/package.json | 13 +++++++++++++ exercises/phone-number/runtests.bat | 1 - exercises/phone-number/runtests.sh | 2 -- .../{Raindrops.example => Raindrops.example.elm} | 0 .../raindrops/{RaindropsTests.elm => Tests.elm} | 4 ++-- exercises/raindrops/package.json | 13 +++++++++++++ exercises/raindrops/runtests.bat | 1 - exercises/raindrops/runtests.sh | 2 -- ...ription.example => RNATranscription.example.elm} | 0 .../{RNATranscriptionTests.elm => Tests.elm} | 4 ++-- exercises/rna-transcription/package.json | 13 +++++++++++++ exercises/rna-transcription/runtests.bat | 1 - exercises/rna-transcription/runtests.sh | 2 -- ...Simulator.example => RobotSimulator.example.elm} | 0 .../{RobotSimulatorTests.elm => Tests.elm} | 4 ++-- exercises/robot-simulator/package.json | 13 +++++++++++++ exercises/robot-simulator/runtests.bat | 1 - exercises/robot-simulator/runtests.sh | 2 -- ...anNumerals.example => RomanNumerals.example.elm} | 0 .../{RomanNumeralsTests.elm => Tests.elm} | 4 ++-- exercises/roman-numerals/package.json | 13 +++++++++++++ exercises/roman-numerals/runtests.bat | 1 - exercises/roman-numerals/runtests.sh | 2 -- ...coding.example => RunLengthEncoding.example.elm} | 0 .../{RunLengthEncodingTests.elm => Tests.elm} | 4 ++-- exercises/run-length-encoding/package.json | 13 +++++++++++++ exercises/run-length-encoding/runtests.bat | 1 - exercises/run-length-encoding/runtests.sh | 2 -- exercises/say/{Say.example => Say.example.elm} | 0 exercises/say/{SayTests.elm => Tests.elm} | 4 ++-- exercises/say/package.json | 13 +++++++++++++ exercises/say/runtests.bat | 1 - exercises/say/runtests.sh | 2 -- ...abbleScore.example => ScrabbleScore.example.elm} | 0 .../{ScrabbleScoreTests.elm => Tests.elm} | 4 ++-- exercises/scrabble-score/package.json | 13 +++++++++++++ exercises/scrabble-score/runtests.bat | 1 - exercises/scrabble-score/runtests.sh | 2 -- .../series/{Series.example => Series.example.elm} | 0 exercises/series/{SeriesTests.elm => Tests.elm} | 4 ++-- exercises/series/package.json | 13 +++++++++++++ exercises/series/runtests.bat | 1 - exercises/series/runtests.sh | 2 -- .../{SpaceAge.example => SpaceAge.example.elm} | 0 .../space-age/{SpaceAgeTests.elm => Tests.elm} | 4 ++-- exercises/space-age/package.json | 13 +++++++++++++ exercises/space-age/runtests.bat | 1 - exercises/space-age/runtests.sh | 2 -- .../strain/{Strain.example => Strain.example.elm} | 0 exercises/strain/{StrainTests.elm => Tests.elm} | 4 ++-- exercises/strain/package.json | 13 +++++++++++++ exercises/strain/runtests.bat | 1 - exercises/strain/runtests.sh | 2 -- .../{Sublist.example => Sublist.example.elm} | 0 exercises/sublist/{SublistTests.elm => Tests.elm} | 4 ++-- exercises/sublist/package.json | 13 +++++++++++++ exercises/sublist/runtests.bat | 1 - exercises/sublist/runtests.sh | 2 -- ...Multiples.example => SumOfMultiples.example.elm} | 0 .../{SumOfMultiplesTests.elm => Tests.elm} | 4 ++-- exercises/sum-of-multiples/package.json | 13 +++++++++++++ exercises/sum-of-multiples/runtests.bat | 1 - exercises/sum-of-multiples/runtests.sh | 2 -- exercises/triangle/{TriangleTests.elm => Tests.elm} | 4 ++-- .../{Triangle.example => Triangle.example.elm} | 0 exercises/triangle/package.json | 13 +++++++++++++ exercises/triangle/runtests.bat | 1 - exercises/triangle/runtests.sh | 2 -- .../word-count/{WordCountTests.elm => Tests.elm} | 4 ++-- .../{WordCount.example => WordCount.example.elm} | 0 exercises/word-count/package.json | 13 +++++++++++++ exercises/word-count/runtests.bat | 1 - exercises/word-count/runtests.sh | 2 -- 146 files changed, 437 insertions(+), 147 deletions(-) rename exercises/accumulate/{Accumulate.example => Accumulate.example.elm} (100%) rename exercises/accumulate/{AccumulateTests.elm => Tests.elm} (92%) create mode 100644 exercises/accumulate/package.json delete mode 100644 exercises/accumulate/runtests.bat delete mode 100644 exercises/accumulate/runtests.sh rename exercises/allergies/{Allergies.example => Allergies.example.elm} (100%) rename exercises/allergies/{AllergiesTests.elm => Tests.elm} (96%) create mode 100644 exercises/allergies/package.json delete mode 100644 exercises/allergies/runtests.bat delete mode 100644 exercises/allergies/runtests.sh rename exercises/anagram/{Anagram.example => Anagram.example.elm} (100%) rename exercises/anagram/{AnagramTests.elm => Tests.elm} (98%) create mode 100644 exercises/anagram/package.json delete mode 100644 exercises/anagram/runtests.bat delete mode 100644 exercises/anagram/runtests.sh rename exercises/atbash-cipher/{AtbashCipher.example => AtbashCipher.example.elm} (100%) rename exercises/atbash-cipher/{AtbashCipherTests.elm => Tests.elm} (95%) create mode 100644 exercises/atbash-cipher/package.json delete mode 100644 exercises/atbash-cipher/runtests.bat delete mode 100644 exercises/atbash-cipher/runtests.sh rename exercises/bob/{Bob.example => Bob.example.elm} (100%) rename exercises/bob/{BobTests.elm => Tests.elm} (98%) create mode 100644 exercises/bob/package.json delete mode 100644 exercises/bob/runtests.bat delete mode 100644 exercises/bob/runtests.sh rename exercises/difference-of-squares/{DifferenceOfSquares.example => DifferenceOfSquares.example.elm} (100%) rename exercises/difference-of-squares/{DifferenceOfSquaresTests.elm => Tests.elm} (95%) create mode 100644 exercises/difference-of-squares/package.json delete mode 100644 exercises/difference-of-squares/runtests.bat delete mode 100644 exercises/difference-of-squares/runtests.sh rename exercises/gigasecond/{Gigasecond.example => Gigasecond.example.elm} (100%) rename exercises/gigasecond/{GigasecondTests.elm => Tests.elm} (94%) create mode 100644 exercises/gigasecond/package.json delete mode 100644 exercises/gigasecond/runtests.bat delete mode 100644 exercises/gigasecond/runtests.sh rename exercises/grade-school/{GradeSchool.example => GradeSchool.example.elm} (100%) rename exercises/grade-school/{GradeSchoolTests.elm => Tests.elm} (97%) create mode 100644 exercises/grade-school/package.json delete mode 100644 exercises/grade-school/runtests.bat delete mode 100644 exercises/grade-school/runtests.sh rename exercises/hamming/{Hamming.example => Hamming.example.elm} (100%) rename exercises/hamming/{HammingTests.elm => Tests.elm} (96%) create mode 100644 exercises/hamming/package.json delete mode 100644 exercises/hamming/runtests.bat delete mode 100644 exercises/hamming/runtests.sh rename exercises/largest-series-product/{LargestSeriesProduct.example => LargestSeriesProduct.example.elm} (100%) rename exercises/largest-series-product/{LargestSeriesProductTests.elm => Tests.elm} (98%) create mode 100644 exercises/largest-series-product/package.json delete mode 100644 exercises/largest-series-product/runtests.bat delete mode 100644 exercises/largest-series-product/runtests.sh rename exercises/leap/{Leap.example => Leap.example.elm} (100%) rename exercises/leap/{LeapTests.elm => Tests.elm} (92%) create mode 100644 exercises/leap/package.json delete mode 100644 exercises/leap/runtests.bat delete mode 100644 exercises/leap/runtests.sh rename exercises/list-ops/{ListOps.example => ListOps.example.elm} (100%) rename exercises/list-ops/{ListOpsTests.elm => Tests.elm} (97%) create mode 100644 exercises/list-ops/package.json delete mode 100644 exercises/list-ops/runtests.bat delete mode 100644 exercises/list-ops/runtests.sh rename exercises/nucleotide-count/{NucleotideCount.example => NucleotideCount.example.elm} (100%) rename exercises/nucleotide-count/{NucleotideCountTests.elm => Tests.elm} (93%) create mode 100644 exercises/nucleotide-count/package.json delete mode 100644 exercises/nucleotide-count/runtests.bat delete mode 100644 exercises/nucleotide-count/runtests.sh rename exercises/pangram/{Pangram.example => Pangram.example.elm} (100%) rename exercises/pangram/{PangramTests.elm => Tests.elm} (96%) create mode 100644 exercises/pangram/package.json delete mode 100644 exercises/pangram/runtests.bat delete mode 100644 exercises/pangram/runtests.sh rename exercises/phone-number/{PhoneNumber.example => PhoneNumber.example.elm} (100%) rename exercises/phone-number/{PhoneNumberTests.elm => Tests.elm} (96%) create mode 100644 exercises/phone-number/package.json delete mode 100644 exercises/phone-number/runtests.bat delete mode 100644 exercises/phone-number/runtests.sh rename exercises/raindrops/{Raindrops.example => Raindrops.example.elm} (100%) rename exercises/raindrops/{RaindropsTests.elm => Tests.elm} (95%) create mode 100644 exercises/raindrops/package.json delete mode 100644 exercises/raindrops/runtests.bat delete mode 100644 exercises/raindrops/runtests.sh rename exercises/rna-transcription/{RNATranscription.example => RNATranscription.example.elm} (100%) rename exercises/rna-transcription/{RNATranscriptionTests.elm => Tests.elm} (93%) create mode 100644 exercises/rna-transcription/package.json delete mode 100644 exercises/rna-transcription/runtests.bat delete mode 100644 exercises/rna-transcription/runtests.sh rename exercises/robot-simulator/{RobotSimulator.example => RobotSimulator.example.elm} (100%) rename exercises/robot-simulator/{RobotSimulatorTests.elm => Tests.elm} (98%) create mode 100644 exercises/robot-simulator/package.json delete mode 100644 exercises/robot-simulator/runtests.bat delete mode 100644 exercises/robot-simulator/runtests.sh rename exercises/roman-numerals/{RomanNumerals.example => RomanNumerals.example.elm} (100%) rename exercises/roman-numerals/{RomanNumeralsTests.elm => Tests.elm} (97%) create mode 100644 exercises/roman-numerals/package.json delete mode 100644 exercises/roman-numerals/runtests.bat delete mode 100644 exercises/roman-numerals/runtests.sh rename exercises/run-length-encoding/{RunLengthEncoding.example => RunLengthEncoding.example.elm} (100%) rename exercises/run-length-encoding/{RunLengthEncodingTests.elm => Tests.elm} (95%) create mode 100644 exercises/run-length-encoding/package.json delete mode 100644 exercises/run-length-encoding/runtests.bat delete mode 100644 exercises/run-length-encoding/runtests.sh rename exercises/say/{Say.example => Say.example.elm} (100%) rename exercises/say/{SayTests.elm => Tests.elm} (97%) create mode 100644 exercises/say/package.json delete mode 100644 exercises/say/runtests.bat delete mode 100644 exercises/say/runtests.sh rename exercises/scrabble-score/{ScrabbleScore.example => ScrabbleScore.example.elm} (100%) rename exercises/scrabble-score/{ScrabbleScoreTests.elm => Tests.elm} (94%) create mode 100644 exercises/scrabble-score/package.json delete mode 100644 exercises/scrabble-score/runtests.bat delete mode 100644 exercises/scrabble-score/runtests.sh rename exercises/series/{Series.example => Series.example.elm} (100%) rename exercises/series/{SeriesTests.elm => Tests.elm} (95%) create mode 100644 exercises/series/package.json delete mode 100644 exercises/series/runtests.bat delete mode 100644 exercises/series/runtests.sh rename exercises/space-age/{SpaceAge.example => SpaceAge.example.elm} (100%) rename exercises/space-age/{SpaceAgeTests.elm => Tests.elm} (94%) create mode 100644 exercises/space-age/package.json delete mode 100644 exercises/space-age/runtests.bat delete mode 100644 exercises/space-age/runtests.sh rename exercises/strain/{Strain.example => Strain.example.elm} (100%) rename exercises/strain/{StrainTests.elm => Tests.elm} (97%) create mode 100644 exercises/strain/package.json delete mode 100644 exercises/strain/runtests.bat delete mode 100644 exercises/strain/runtests.sh rename exercises/sublist/{Sublist.example => Sublist.example.elm} (100%) rename exercises/sublist/{SublistTests.elm => Tests.elm} (97%) create mode 100644 exercises/sublist/package.json delete mode 100644 exercises/sublist/runtests.bat delete mode 100644 exercises/sublist/runtests.sh rename exercises/sum-of-multiples/{SumOfMultiples.example => SumOfMultiples.example.elm} (100%) rename exercises/sum-of-multiples/{SumOfMultiplesTests.elm => Tests.elm} (92%) create mode 100644 exercises/sum-of-multiples/package.json delete mode 100644 exercises/sum-of-multiples/runtests.bat delete mode 100644 exercises/sum-of-multiples/runtests.sh rename exercises/triangle/{TriangleTests.elm => Tests.elm} (96%) rename exercises/triangle/{Triangle.example => Triangle.example.elm} (100%) create mode 100644 exercises/triangle/package.json delete mode 100644 exercises/triangle/runtests.bat delete mode 100644 exercises/triangle/runtests.sh rename exercises/word-count/{WordCountTests.elm => Tests.elm} (95%) rename exercises/word-count/{WordCount.example => WordCount.example.elm} (100%) create mode 100644 exercises/word-count/package.json delete mode 100644 exercises/word-count/runtests.bat delete mode 100644 exercises/word-count/runtests.sh diff --git a/bin/build.sh b/bin/build.sh index 53b5eee..8d2f58e 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -40,7 +40,7 @@ do mv "$exercise_dir/$exercise_name.elm" "$exercise_dir/$exercise_name.impl" mv "$exercise_dir/$exercise_name.example.elm" "$exercise_dir/$exercise_name.elm" echo '-------------------------------------------------------' - echo "Testing $exercise" + echo "Testing $exercise_name" # prevent elm-test from installing dependencies mv $exercise_dir/elm-package.json $exercise_dir/elm-package.json.disabled @@ -50,7 +50,7 @@ do # capture result from last command (elm-test) if [ $? -ne 0 ]; then TEST_RESULT=1 - FAILED_EXERCISES+="$exercise\n" + FAILED_EXERCISES+="$exercise_name\n" fi # be kind, rewind diff --git a/exercises/accumulate/Accumulate.example b/exercises/accumulate/Accumulate.example.elm similarity index 100% rename from exercises/accumulate/Accumulate.example rename to exercises/accumulate/Accumulate.example.elm diff --git a/exercises/accumulate/AccumulateTests.elm b/exercises/accumulate/Tests.elm similarity index 92% rename from exercises/accumulate/AccumulateTests.elm rename to exercises/accumulate/Tests.elm index d6f1ac8..9e5313f 100644 --- a/exercises/accumulate/AccumulateTests.elm +++ b/exercises/accumulate/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -31,7 +31,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/accumulate/package.json b/exercises/accumulate/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/accumulate/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/accumulate/runtests.bat b/exercises/accumulate/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/accumulate/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/accumulate/runtests.sh b/exercises/accumulate/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/accumulate/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/allergies/Allergies.example b/exercises/allergies/Allergies.example.elm similarity index 100% rename from exercises/allergies/Allergies.example rename to exercises/allergies/Allergies.example.elm diff --git a/exercises/allergies/AllergiesTests.elm b/exercises/allergies/Tests.elm similarity index 96% rename from exercises/allergies/AllergiesTests.elm rename to exercises/allergies/Tests.elm index e3297af..6e855d8 100644 --- a/exercises/allergies/AllergiesTests.elm +++ b/exercises/allergies/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -50,7 +50,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/allergies/package.json b/exercises/allergies/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/allergies/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/allergies/runtests.bat b/exercises/allergies/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/allergies/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/allergies/runtests.sh b/exercises/allergies/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/allergies/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/anagram/Anagram.example b/exercises/anagram/Anagram.example.elm similarity index 100% rename from exercises/anagram/Anagram.example rename to exercises/anagram/Anagram.example.elm diff --git a/exercises/anagram/AnagramTests.elm b/exercises/anagram/Tests.elm similarity index 98% rename from exercises/anagram/AnagramTests.elm rename to exercises/anagram/Tests.elm index 699bbf2..4f12847 100644 --- a/exercises/anagram/AnagramTests.elm +++ b/exercises/anagram/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -93,7 +93,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/anagram/package.json b/exercises/anagram/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/anagram/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/anagram/runtests.bat b/exercises/anagram/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/anagram/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/anagram/runtests.sh b/exercises/anagram/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/anagram/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/atbash-cipher/AtbashCipher.example b/exercises/atbash-cipher/AtbashCipher.example.elm similarity index 100% rename from exercises/atbash-cipher/AtbashCipher.example rename to exercises/atbash-cipher/AtbashCipher.example.elm diff --git a/exercises/atbash-cipher/AtbashCipherTests.elm b/exercises/atbash-cipher/Tests.elm similarity index 95% rename from exercises/atbash-cipher/AtbashCipherTests.elm rename to exercises/atbash-cipher/Tests.elm index 0c26d0d..d9ec5ff 100644 --- a/exercises/atbash-cipher/AtbashCipherTests.elm +++ b/exercises/atbash-cipher/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -37,7 +37,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/atbash-cipher/package.json b/exercises/atbash-cipher/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/atbash-cipher/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/atbash-cipher/runtests.bat b/exercises/atbash-cipher/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/atbash-cipher/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/atbash-cipher/runtests.sh b/exercises/atbash-cipher/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/atbash-cipher/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/bob/Bob.example b/exercises/bob/Bob.example.elm similarity index 100% rename from exercises/bob/Bob.example rename to exercises/bob/Bob.example.elm diff --git a/exercises/bob/BobTests.elm b/exercises/bob/Tests.elm similarity index 98% rename from exercises/bob/BobTests.elm rename to exercises/bob/Tests.elm index 0e01bfe..d55e7aa 100644 --- a/exercises/bob/BobTests.elm +++ b/exercises/bob/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -150,7 +150,7 @@ gibberishQuestion length = (gibberish length anyCharacter) ++ "?" -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/bob/package.json b/exercises/bob/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/bob/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/bob/runtests.bat b/exercises/bob/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/bob/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/bob/runtests.sh b/exercises/bob/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/bob/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/difference-of-squares/DifferenceOfSquares.example b/exercises/difference-of-squares/DifferenceOfSquares.example.elm similarity index 100% rename from exercises/difference-of-squares/DifferenceOfSquares.example rename to exercises/difference-of-squares/DifferenceOfSquares.example.elm diff --git a/exercises/difference-of-squares/DifferenceOfSquaresTests.elm b/exercises/difference-of-squares/Tests.elm similarity index 95% rename from exercises/difference-of-squares/DifferenceOfSquaresTests.elm rename to exercises/difference-of-squares/Tests.elm index 04b1d8f..268e5ac 100644 --- a/exercises/difference-of-squares/DifferenceOfSquaresTests.elm +++ b/exercises/difference-of-squares/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -39,7 +39,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/difference-of-squares/package.json b/exercises/difference-of-squares/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/difference-of-squares/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/difference-of-squares/runtests.bat b/exercises/difference-of-squares/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/difference-of-squares/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/difference-of-squares/runtests.sh b/exercises/difference-of-squares/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/difference-of-squares/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/gigasecond/Gigasecond.example b/exercises/gigasecond/Gigasecond.example.elm similarity index 100% rename from exercises/gigasecond/Gigasecond.example rename to exercises/gigasecond/Gigasecond.example.elm diff --git a/exercises/gigasecond/GigasecondTests.elm b/exercises/gigasecond/Tests.elm similarity index 94% rename from exercises/gigasecond/GigasecondTests.elm rename to exercises/gigasecond/Tests.elm index ccc291f..c355bf7 100644 --- a/exercises/gigasecond/GigasecondTests.elm +++ b/exercises/gigasecond/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -41,7 +41,7 @@ date input = Debug.crash reason -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/gigasecond/package.json b/exercises/gigasecond/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/gigasecond/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/gigasecond/runtests.bat b/exercises/gigasecond/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/gigasecond/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/gigasecond/runtests.sh b/exercises/gigasecond/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/gigasecond/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/grade-school/GradeSchool.example b/exercises/grade-school/GradeSchool.example.elm similarity index 100% rename from exercises/grade-school/GradeSchool.example rename to exercises/grade-school/GradeSchool.example.elm diff --git a/exercises/grade-school/GradeSchoolTests.elm b/exercises/grade-school/Tests.elm similarity index 97% rename from exercises/grade-school/GradeSchoolTests.elm rename to exercises/grade-school/Tests.elm index dcfa147..ce60a9a 100644 --- a/exercises/grade-school/GradeSchoolTests.elm +++ b/exercises/grade-school/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -61,7 +61,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/grade-school/package.json b/exercises/grade-school/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/grade-school/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/grade-school/runtests.bat b/exercises/grade-school/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/grade-school/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/grade-school/runtests.sh b/exercises/grade-school/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/grade-school/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/hamming/Hamming.example b/exercises/hamming/Hamming.example.elm similarity index 100% rename from exercises/hamming/Hamming.example rename to exercises/hamming/Hamming.example.elm diff --git a/exercises/hamming/HammingTests.elm b/exercises/hamming/Tests.elm similarity index 96% rename from exercises/hamming/HammingTests.elm rename to exercises/hamming/Tests.elm index 0350b2f..8694212 100644 --- a/exercises/hamming/HammingTests.elm +++ b/exercises/hamming/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -41,7 +41,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/hamming/package.json b/exercises/hamming/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/hamming/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/hamming/runtests.bat b/exercises/hamming/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/hamming/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/hamming/runtests.sh b/exercises/hamming/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/hamming/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/largest-series-product/LargestSeriesProduct.example b/exercises/largest-series-product/LargestSeriesProduct.example.elm similarity index 100% rename from exercises/largest-series-product/LargestSeriesProduct.example rename to exercises/largest-series-product/LargestSeriesProduct.example.elm diff --git a/exercises/largest-series-product/LargestSeriesProductTests.elm b/exercises/largest-series-product/Tests.elm similarity index 98% rename from exercises/largest-series-product/LargestSeriesProductTests.elm rename to exercises/largest-series-product/Tests.elm index 499b142..a326520 100644 --- a/exercises/largest-series-product/LargestSeriesProductTests.elm +++ b/exercises/largest-series-product/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -47,7 +47,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/largest-series-product/package.json b/exercises/largest-series-product/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/largest-series-product/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/largest-series-product/runtests.bat b/exercises/largest-series-product/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/largest-series-product/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/largest-series-product/runtests.sh b/exercises/largest-series-product/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/largest-series-product/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/leap/Leap.example b/exercises/leap/Leap.example.elm similarity index 100% rename from exercises/leap/Leap.example rename to exercises/leap/Leap.example.elm diff --git a/exercises/leap/LeapTests.elm b/exercises/leap/Tests.elm similarity index 92% rename from exercises/leap/LeapTests.elm rename to exercises/leap/Tests.elm index 9a4d70e..99b37de 100644 --- a/exercises/leap/LeapTests.elm +++ b/exercises/leap/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -27,7 +27,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/leap/package.json b/exercises/leap/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/leap/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/leap/runtests.bat b/exercises/leap/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/leap/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/leap/runtests.sh b/exercises/leap/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/leap/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/list-ops/ListOps.example b/exercises/list-ops/ListOps.example.elm similarity index 100% rename from exercises/list-ops/ListOps.example rename to exercises/list-ops/ListOps.example.elm diff --git a/exercises/list-ops/ListOpsTests.elm b/exercises/list-ops/Tests.elm similarity index 97% rename from exercises/list-ops/ListOpsTests.elm rename to exercises/list-ops/Tests.elm index 9897bfa..2336eeb 100644 --- a/exercises/list-ops/ListOpsTests.elm +++ b/exercises/list-ops/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -69,7 +69,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/list-ops/package.json b/exercises/list-ops/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/list-ops/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/list-ops/runtests.bat b/exercises/list-ops/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/list-ops/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/list-ops/runtests.sh b/exercises/list-ops/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/list-ops/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/nucleotide-count/NucleotideCount.example b/exercises/nucleotide-count/NucleotideCount.example.elm similarity index 100% rename from exercises/nucleotide-count/NucleotideCount.example rename to exercises/nucleotide-count/NucleotideCount.example.elm diff --git a/exercises/nucleotide-count/NucleotideCountTests.elm b/exercises/nucleotide-count/Tests.elm similarity index 93% rename from exercises/nucleotide-count/NucleotideCountTests.elm rename to exercises/nucleotide-count/Tests.elm index e1191e0..8438fd5 100644 --- a/exercises/nucleotide-count/NucleotideCountTests.elm +++ b/exercises/nucleotide-count/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -27,7 +27,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/nucleotide-count/package.json b/exercises/nucleotide-count/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/nucleotide-count/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/nucleotide-count/runtests.bat b/exercises/nucleotide-count/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/nucleotide-count/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/nucleotide-count/runtests.sh b/exercises/nucleotide-count/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/nucleotide-count/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/pangram/Pangram.example b/exercises/pangram/Pangram.example.elm similarity index 100% rename from exercises/pangram/Pangram.example rename to exercises/pangram/Pangram.example.elm diff --git a/exercises/pangram/PangramTests.elm b/exercises/pangram/Tests.elm similarity index 96% rename from exercises/pangram/PangramTests.elm rename to exercises/pangram/Tests.elm index ce097d1..07a8fe0 100644 --- a/exercises/pangram/PangramTests.elm +++ b/exercises/pangram/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -49,7 +49,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/pangram/package.json b/exercises/pangram/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/pangram/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/pangram/runtests.bat b/exercises/pangram/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/pangram/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/pangram/runtests.sh b/exercises/pangram/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/pangram/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/phone-number/PhoneNumber.example b/exercises/phone-number/PhoneNumber.example.elm similarity index 100% rename from exercises/phone-number/PhoneNumber.example rename to exercises/phone-number/PhoneNumber.example.elm diff --git a/exercises/phone-number/PhoneNumberTests.elm b/exercises/phone-number/Tests.elm similarity index 96% rename from exercises/phone-number/PhoneNumberTests.elm rename to exercises/phone-number/Tests.elm index c8145fb..a655e7b 100644 --- a/exercises/phone-number/PhoneNumberTests.elm +++ b/exercises/phone-number/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -37,7 +37,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/phone-number/package.json b/exercises/phone-number/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/phone-number/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/phone-number/runtests.bat b/exercises/phone-number/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/phone-number/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/phone-number/runtests.sh b/exercises/phone-number/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/phone-number/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/raindrops/Raindrops.example b/exercises/raindrops/Raindrops.example.elm similarity index 100% rename from exercises/raindrops/Raindrops.example rename to exercises/raindrops/Raindrops.example.elm diff --git a/exercises/raindrops/RaindropsTests.elm b/exercises/raindrops/Tests.elm similarity index 95% rename from exercises/raindrops/RaindropsTests.elm rename to exercises/raindrops/Tests.elm index 0342919..09e86a6 100644 --- a/exercises/raindrops/RaindropsTests.elm +++ b/exercises/raindrops/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -43,7 +43,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/raindrops/package.json b/exercises/raindrops/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/raindrops/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/raindrops/runtests.bat b/exercises/raindrops/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/raindrops/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/raindrops/runtests.sh b/exercises/raindrops/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/raindrops/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/rna-transcription/RNATranscription.example b/exercises/rna-transcription/RNATranscription.example.elm similarity index 100% rename from exercises/rna-transcription/RNATranscription.example rename to exercises/rna-transcription/RNATranscription.example.elm diff --git a/exercises/rna-transcription/RNATranscriptionTests.elm b/exercises/rna-transcription/Tests.elm similarity index 93% rename from exercises/rna-transcription/RNATranscriptionTests.elm rename to exercises/rna-transcription/Tests.elm index 628e96a..965108d 100644 --- a/exercises/rna-transcription/RNATranscriptionTests.elm +++ b/exercises/rna-transcription/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -27,7 +27,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/rna-transcription/package.json b/exercises/rna-transcription/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/rna-transcription/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/rna-transcription/runtests.bat b/exercises/rna-transcription/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/rna-transcription/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/rna-transcription/runtests.sh b/exercises/rna-transcription/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/rna-transcription/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/robot-simulator/RobotSimulator.example b/exercises/robot-simulator/RobotSimulator.example.elm similarity index 100% rename from exercises/robot-simulator/RobotSimulator.example rename to exercises/robot-simulator/RobotSimulator.example.elm diff --git a/exercises/robot-simulator/RobotSimulatorTests.elm b/exercises/robot-simulator/Tests.elm similarity index 98% rename from exercises/robot-simulator/RobotSimulatorTests.elm rename to exercises/robot-simulator/Tests.elm index e950f98..b25a192 100644 --- a/exercises/robot-simulator/RobotSimulatorTests.elm +++ b/exercises/robot-simulator/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -142,7 +142,7 @@ assertionList xs ys = List.map2 Expect.equal xs ys -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/robot-simulator/package.json b/exercises/robot-simulator/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/robot-simulator/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/robot-simulator/runtests.bat b/exercises/robot-simulator/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/robot-simulator/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/robot-simulator/runtests.sh b/exercises/robot-simulator/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/robot-simulator/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/roman-numerals/RomanNumerals.example b/exercises/roman-numerals/RomanNumerals.example.elm similarity index 100% rename from exercises/roman-numerals/RomanNumerals.example rename to exercises/roman-numerals/RomanNumerals.example.elm diff --git a/exercises/roman-numerals/RomanNumeralsTests.elm b/exercises/roman-numerals/Tests.elm similarity index 97% rename from exercises/roman-numerals/RomanNumeralsTests.elm rename to exercises/roman-numerals/Tests.elm index 39df8b1..eed0449 100644 --- a/exercises/roman-numerals/RomanNumeralsTests.elm +++ b/exercises/roman-numerals/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -85,7 +85,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/roman-numerals/package.json b/exercises/roman-numerals/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/roman-numerals/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/roman-numerals/runtests.bat b/exercises/roman-numerals/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/roman-numerals/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/roman-numerals/runtests.sh b/exercises/roman-numerals/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/roman-numerals/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/run-length-encoding/RunLengthEncoding.example b/exercises/run-length-encoding/RunLengthEncoding.example.elm similarity index 100% rename from exercises/run-length-encoding/RunLengthEncoding.example rename to exercises/run-length-encoding/RunLengthEncoding.example.elm diff --git a/exercises/run-length-encoding/RunLengthEncodingTests.elm b/exercises/run-length-encoding/Tests.elm similarity index 95% rename from exercises/run-length-encoding/RunLengthEncodingTests.elm rename to exercises/run-length-encoding/Tests.elm index dd5ce1f..4744d74 100644 --- a/exercises/run-length-encoding/RunLengthEncodingTests.elm +++ b/exercises/run-length-encoding/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -39,7 +39,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/run-length-encoding/package.json b/exercises/run-length-encoding/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/run-length-encoding/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/run-length-encoding/runtests.bat b/exercises/run-length-encoding/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/run-length-encoding/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/run-length-encoding/runtests.sh b/exercises/run-length-encoding/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/run-length-encoding/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/say/Say.example b/exercises/say/Say.example.elm similarity index 100% rename from exercises/say/Say.example rename to exercises/say/Say.example.elm diff --git a/exercises/say/SayTests.elm b/exercises/say/Tests.elm similarity index 97% rename from exercises/say/SayTests.elm rename to exercises/say/Tests.elm index 4aa17ba..7193601 100644 --- a/exercises/say/SayTests.elm +++ b/exercises/say/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -88,7 +88,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/say/package.json b/exercises/say/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/say/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/say/runtests.bat b/exercises/say/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/say/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/say/runtests.sh b/exercises/say/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/say/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/scrabble-score/ScrabbleScore.example b/exercises/scrabble-score/ScrabbleScore.example.elm similarity index 100% rename from exercises/scrabble-score/ScrabbleScore.example rename to exercises/scrabble-score/ScrabbleScore.example.elm diff --git a/exercises/scrabble-score/ScrabbleScoreTests.elm b/exercises/scrabble-score/Tests.elm similarity index 94% rename from exercises/scrabble-score/ScrabbleScoreTests.elm rename to exercises/scrabble-score/Tests.elm index 66f5841..bdf711e 100644 --- a/exercises/scrabble-score/ScrabbleScoreTests.elm +++ b/exercises/scrabble-score/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -35,7 +35,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/scrabble-score/package.json b/exercises/scrabble-score/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/scrabble-score/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/scrabble-score/runtests.bat b/exercises/scrabble-score/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/scrabble-score/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/scrabble-score/runtests.sh b/exercises/scrabble-score/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/scrabble-score/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/series/Series.example b/exercises/series/Series.example.elm similarity index 100% rename from exercises/series/Series.example rename to exercises/series/Series.example.elm diff --git a/exercises/series/SeriesTests.elm b/exercises/series/Tests.elm similarity index 95% rename from exercises/series/SeriesTests.elm rename to exercises/series/Tests.elm index e568284..57b53c4 100644 --- a/exercises/series/SeriesTests.elm +++ b/exercises/series/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -45,7 +45,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/series/package.json b/exercises/series/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/series/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/series/runtests.bat b/exercises/series/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/series/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/series/runtests.sh b/exercises/series/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/series/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/space-age/SpaceAge.example b/exercises/space-age/SpaceAge.example.elm similarity index 100% rename from exercises/space-age/SpaceAge.example rename to exercises/space-age/SpaceAge.example.elm diff --git a/exercises/space-age/SpaceAgeTests.elm b/exercises/space-age/Tests.elm similarity index 94% rename from exercises/space-age/SpaceAgeTests.elm rename to exercises/space-age/Tests.elm index 20743eb..47e8b0f 100644 --- a/exercises/space-age/SpaceAgeTests.elm +++ b/exercises/space-age/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -29,7 +29,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/space-age/package.json b/exercises/space-age/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/space-age/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/space-age/runtests.bat b/exercises/space-age/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/space-age/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/space-age/runtests.sh b/exercises/space-age/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/space-age/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/strain/Strain.example b/exercises/strain/Strain.example.elm similarity index 100% rename from exercises/strain/Strain.example rename to exercises/strain/Strain.example.elm diff --git a/exercises/strain/StrainTests.elm b/exercises/strain/Tests.elm similarity index 97% rename from exercises/strain/StrainTests.elm rename to exercises/strain/Tests.elm index 2818bf8..cf0daa6 100644 --- a/exercises/strain/StrainTests.elm +++ b/exercises/strain/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -82,7 +82,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/strain/package.json b/exercises/strain/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/strain/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/strain/runtests.bat b/exercises/strain/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/strain/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/strain/runtests.sh b/exercises/strain/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/strain/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/sublist/Sublist.example b/exercises/sublist/Sublist.example.elm similarity index 100% rename from exercises/sublist/Sublist.example rename to exercises/sublist/Sublist.example.elm diff --git a/exercises/sublist/SublistTests.elm b/exercises/sublist/Tests.elm similarity index 97% rename from exercises/sublist/SublistTests.elm rename to exercises/sublist/Tests.elm index e87ff3c..01fd846 100644 --- a/exercises/sublist/SublistTests.elm +++ b/exercises/sublist/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -51,7 +51,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/sublist/package.json b/exercises/sublist/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/sublist/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/sublist/runtests.bat b/exercises/sublist/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/sublist/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/sublist/runtests.sh b/exercises/sublist/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/sublist/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/sum-of-multiples/SumOfMultiples.example b/exercises/sum-of-multiples/SumOfMultiples.example.elm similarity index 100% rename from exercises/sum-of-multiples/SumOfMultiples.example rename to exercises/sum-of-multiples/SumOfMultiples.example.elm diff --git a/exercises/sum-of-multiples/SumOfMultiplesTests.elm b/exercises/sum-of-multiples/Tests.elm similarity index 92% rename from exercises/sum-of-multiples/SumOfMultiplesTests.elm rename to exercises/sum-of-multiples/Tests.elm index ced0c07..d7fbc28 100644 --- a/exercises/sum-of-multiples/SumOfMultiplesTests.elm +++ b/exercises/sum-of-multiples/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -25,7 +25,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/sum-of-multiples/package.json b/exercises/sum-of-multiples/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/sum-of-multiples/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/sum-of-multiples/runtests.bat b/exercises/sum-of-multiples/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/sum-of-multiples/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/sum-of-multiples/runtests.sh b/exercises/sum-of-multiples/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/sum-of-multiples/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/triangle/TriangleTests.elm b/exercises/triangle/Tests.elm similarity index 96% rename from exercises/triangle/TriangleTests.elm rename to exercises/triangle/Tests.elm index 7e6e133..cf42686 100644 --- a/exercises/triangle/TriangleTests.elm +++ b/exercises/triangle/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -41,7 +41,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/triangle/Triangle.example b/exercises/triangle/Triangle.example.elm similarity index 100% rename from exercises/triangle/Triangle.example rename to exercises/triangle/Triangle.example.elm diff --git a/exercises/triangle/package.json b/exercises/triangle/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/triangle/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/triangle/runtests.bat b/exercises/triangle/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/triangle/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/triangle/runtests.sh b/exercises/triangle/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/triangle/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm" diff --git a/exercises/word-count/WordCountTests.elm b/exercises/word-count/Tests.elm similarity index 95% rename from exercises/word-count/WordCountTests.elm rename to exercises/word-count/Tests.elm index b33e3e2..5c11ae3 100644 --- a/exercises/word-count/WordCountTests.elm +++ b/exercises/word-count/Tests.elm @@ -1,6 +1,6 @@ port module Main exposing (..) -import Test.Runner.Node exposing (run) +import Test.Runner.Node exposing (run, TestProgram) import Json.Encode exposing (Value) import Test exposing (..) import Expect @@ -38,7 +38,7 @@ tests = ] -main : Program Value +main : TestProgram main = run emit tests diff --git a/exercises/word-count/WordCount.example b/exercises/word-count/WordCount.example.elm similarity index 100% rename from exercises/word-count/WordCount.example rename to exercises/word-count/WordCount.example.elm diff --git a/exercises/word-count/package.json b/exercises/word-count/package.json new file mode 100644 index 0000000..38377a9 --- /dev/null +++ b/exercises/word-count/package.json @@ -0,0 +1,13 @@ +{ + "description": "Excercism/Elm", + "repository": "https://github.com/exercism/xelm.git", + "license": "MIT", + "scripts": { + "postinstall": "elm-package install -y", + "test": "elm-test Tests.elm" + }, + "dependencies": { + "elm": "^0.18.0", + "elm-test": "^0.18.0" + } +} diff --git a/exercises/word-count/runtests.bat b/exercises/word-count/runtests.bat deleted file mode 100644 index 9ce824b..0000000 --- a/exercises/word-count/runtests.bat +++ /dev/null @@ -1 +0,0 @@ -ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm diff --git a/exercises/word-count/runtests.sh b/exercises/word-count/runtests.sh deleted file mode 100644 index 6885122..0000000 --- a/exercises/word-count/runtests.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"