Support for new elm-test version

This commit is contained in:
ilias 2017-05-27 19:56:31 +02:00
parent 411219c42d
commit fbb64e1576
124 changed files with 604 additions and 1606 deletions

View file

@ -59,8 +59,6 @@ Please keep the following in mind:
```elm
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -77,14 +75,6 @@ tests =
False
|> Expect.equal False
]
main : Program Value
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg
```
- All the tests for xElm exercises can be run from the top level of the repo with `bin/build.sh`. Please run this command before submitting your PR.

View file

@ -12,7 +12,7 @@ if [ $? -ne 0 ]; then
exit 1
fi
elm-format --yes --validate exercises/**/{*.example.elm,Tests.elm}
elm-format --yes --validate exercises/**/*.example.elm exercises/**/tests/Tests.elm
if [ $? -ne 0 ]; then
echo "*******************************************************************"
@ -42,10 +42,7 @@ do
echo '-------------------------------------------------------'
echo "Testing $exercise_name"
# prevent elm-test from installing dependencies
mv $exercise_dir/elm-package.json $exercise_dir/elm-package.json.disabled
npm test -- $exercise_dir/Tests.elm
npm test -- $exercise_dir/tests/Tests.elm
# capture result from last command (elm-test)
if [ $? -ne 0 ]; then
@ -54,7 +51,6 @@ do
fi
# be kind, rewind
mv $exercise_dir/elm-package.json.disabled $exercise_dir/elm-package.json
mv "$exercise_dir/$exercise_name.elm" "$exercise_dir/$exercise_name.example.elm"
mv "$exercise_dir/$exercise_name.impl" "$exercise_dir/$exercise_name.elm"
done

View file

@ -39,8 +39,7 @@
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,7 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Accumulate exposing (accumulate)
@ -29,11 +27,3 @@ tests =
Expect.equal [ "olleh", "dlrow" ]
(accumulate String.reverse [ "hello", "world" ])
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Allergies exposing (isAllergicTo, toList)
@ -42,17 +40,9 @@ tests =
(255 |> toList |> List.sort)
, test "ignore non allergen score parts" <|
\() -> Expect.equal [ "eggs" ] (toList 257)
, test "ignore non allergen score parts" <|
, test "ignore all non allergen score parts" <|
\() ->
Expect.equal (List.sort [ "eggs", "shellfish", "strawberries", "tomatoes", "chocolate", "pollen", "cats" ])
(509 |> toList |> List.sort)
]
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Anagram exposing (detect)
@ -34,7 +32,7 @@ tests =
\() ->
Expect.equal [ "inlets" ]
(detect "listen" [ "enlists", "google", "inlets", "banana" ])
, test "detects multiple anagrams" <|
, test "detects even more anagrams" <|
\() ->
Expect.equal [ "gallery", "regally", "largely" ]
(detect "allergy" [ "gallery", "ballerina", "regally", "clergy", "largely", "leading" ])
@ -91,11 +89,3 @@ tests =
Expect.equal []
(detect "patter" [ "tapper" ])
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import AtbashCipher exposing (encode, decode)
@ -35,11 +33,3 @@ tests =
Expect.equal "anobstacleisoftenasteppingstone"
(decode "zmlyh gzxov rhlug vmzhg vkkrm thglm v")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import String
@ -148,11 +146,3 @@ uppercaseGibberish length =
gibberishQuestion : Int -> String
gibberishQuestion length =
(gibberish length anyCharacter) ++ "?"
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import DifferenceOfSquares exposing (squareOfSum, sumOfSquares, difference)
@ -37,11 +35,3 @@ tests =
\() -> Expect.equal 25164150 (difference 100)
]
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Date
@ -39,11 +37,3 @@ date input =
Err reason ->
Debug.crash reason
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import GradeSchool exposing (addStudent, studentsInGrade, allStudents)
@ -59,11 +57,3 @@ tests =
, test "get students in a non-existent grade" <|
\() -> Expect.equal [] (studentsInGrade 1 GradeSchool.empty)
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Hamming exposing (distance)
@ -39,11 +37,3 @@ tests =
, test "disallow second strand longer" <|
\() -> Expect.equal Nothing (distance "ATA" "AGTG")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import HelloWorld exposing (helloWorld)
@ -20,11 +18,3 @@ tests =
\() ->
Expect.equal "Hello, Bob!" (helloWorld (Just "Bob"))
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

File diff suppressed because it is too large Load diff

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import LargestSeriesProduct exposing (largestProduct)
@ -45,11 +43,3 @@ tests =
, test "rejects negative span" <|
\() -> Expect.equal Nothing (largestProduct -1 "12345")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Leap
@ -25,11 +23,3 @@ tests =
, test "y2k" <|
\() -> Expect.equal True (Leap.isLeapYear 2000)
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import ListOps exposing (..)
@ -67,11 +65,3 @@ tests =
\() -> Expect.equal (List.range 1 10) (ListOps.concat [ List.range 1 3, [], List.range 4 7, List.range 8 10 ])
]
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import NucleotideCount exposing (nucleotideCounts, version)
@ -25,11 +23,3 @@ tests =
Expect.equal { a = 20, t = 21, c = 12, g = 17 }
(nucleotideCounts "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Pangram exposing (isPangram)
@ -51,11 +49,3 @@ tests =
Expect.equal True
(isPangram "Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import PhoneNumber exposing (getNumber, prettyPrint)
@ -35,11 +33,3 @@ tests =
, test "pretty print with full us phone number" <|
\() -> Expect.equal (Just "(123) 456-7890") (prettyPrint "11234567890")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Raindrops exposing (raindrops)
@ -41,11 +39,3 @@ tests =
, test "105" <|
\() -> Expect.equal "PlingPlangPlong" (raindrops 105)
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import RNATranscription exposing (toRNA)
@ -25,11 +23,3 @@ tests =
, test "correctly handles partially invalid input" <|
\() -> Expect.equal (Err 'U') (toRNA "UGAAXXXGACAUG")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import RobotSimulator exposing (defaultRobot, Robot, Bearing(North, East, West, South), turnRight, turnLeft, advance, simulate)
@ -140,11 +138,3 @@ generate a list of Assert Equal assertions.
assertionList : List a -> List a -> List Expect.Expectation
assertionList xs ys =
List.map2 Expect.equal xs ys
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import RomanNumerals exposing (toRoman)
@ -83,11 +81,3 @@ tests =
Expect.equal ("MMM")
(toRoman 3000)
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import RunLengthEncoding exposing (version, decode, encode)
@ -37,11 +35,3 @@ tests =
, test "decode unicode" <|
\() -> Expect.equal "" (decode "32")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Say exposing (say, SayError(Negative, TooLarge))
@ -86,11 +84,3 @@ tests =
)
(say 987654321123)
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import ScrabbleScore exposing (scoreWord)
@ -33,11 +31,3 @@ tests =
, test "empty input" <|
\() -> Expect.equal 0 (scoreWord "")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -8,9 +8,8 @@
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "3.0.0 <= v < 4.0.0",
"rtfeldman/node-test-runner": "3.0.0 <= v < 4.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

View file

@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
"test": "elm-test"
},
"dependencies": {
"elm": "^0.18.0",

View file

@ -1,7 +1,5 @@
port module Main exposing (..)
module Tests exposing (..)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
import Series exposing (slices)
@ -43,11 +41,3 @@ tests =
Expect.equal (Err "could not convert string 'a' to an Int")
(slices 2 "0123abc")
]
main : TestProgram
main =
run emit tests
port emit : ( String, Value ) -> Cmd msg

View file

@ -0,0 +1,16 @@
{
"version": "3.0.0",
"summary": "Exercism problems in Elm.",
"repository": "https://github.com/exercism/xelm.git",
"license": "BSD3",
"source-directories": [
".",
".."
],
"exposed-modules": [],
"dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.18.0 <= v < 0.19.0"
}

Some files were not shown because too many files have changed in this diff Show more