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 ```elm
port module Main exposing (..) port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Json.Encode exposing (Value)
import Test exposing (..) import Test exposing (..)
import Expect import Expect
@ -77,14 +75,6 @@ tests =
False False
|> Expect.equal 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. - 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 exit 1
fi 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 if [ $? -ne 0 ]; then
echo "*******************************************************************" echo "*******************************************************************"
@ -42,10 +42,7 @@ do
echo '-------------------------------------------------------' echo '-------------------------------------------------------'
echo "Testing $exercise_name" echo "Testing $exercise_name"
# prevent elm-test from installing dependencies npm test -- $exercise_dir/tests/Tests.elm
mv $exercise_dir/elm-package.json $exercise_dir/elm-package.json.disabled
npm test -- $exercise_dir/Tests.elm
# capture result from last command (elm-test) # capture result from last command (elm-test)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -54,7 +51,6 @@ do
fi fi
# be kind, rewind # 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.elm" "$exercise_dir/$exercise_name.example.elm"
mv "$exercise_dir/$exercise_name.impl" "$exercise_dir/$exercise_name.elm" mv "$exercise_dir/$exercise_name.impl" "$exercise_dir/$exercise_name.elm"
done done

View file

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

View file

@ -8,9 +8,7 @@
], ],
"exposed-modules": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Accumulate exposing (accumulate) import Accumulate exposing (accumulate)
@ -29,11 +27,3 @@ tests =
Expect.equal [ "olleh", "dlrow" ] Expect.equal [ "olleh", "dlrow" ]
(accumulate String.reverse [ "hello", "world" ]) (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Allergies exposing (isAllergicTo, toList) import Allergies exposing (isAllergicTo, toList)
@ -42,17 +40,9 @@ tests =
(255 |> toList |> List.sort) (255 |> toList |> List.sort)
, test "ignore non allergen score parts" <| , test "ignore non allergen score parts" <|
\() -> Expect.equal [ "eggs" ] (toList 257) \() -> 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" ]) Expect.equal (List.sort [ "eggs", "shellfish", "strawberries", "tomatoes", "chocolate", "pollen", "cats" ])
(509 |> toList |> List.sort) (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Anagram exposing (detect) import Anagram exposing (detect)
@ -34,7 +32,7 @@ tests =
\() -> \() ->
Expect.equal [ "inlets" ] Expect.equal [ "inlets" ]
(detect "listen" [ "enlists", "google", "inlets", "banana" ]) (detect "listen" [ "enlists", "google", "inlets", "banana" ])
, test "detects multiple anagrams" <| , test "detects even more anagrams" <|
\() -> \() ->
Expect.equal [ "gallery", "regally", "largely" ] Expect.equal [ "gallery", "regally", "largely" ]
(detect "allergy" [ "gallery", "ballerina", "regally", "clergy", "largely", "leading" ]) (detect "allergy" [ "gallery", "ballerina", "regally", "clergy", "largely", "leading" ])
@ -91,11 +89,3 @@ tests =
Expect.equal [] Expect.equal []
(detect "patter" [ "tapper" ]) (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import AtbashCipher exposing (encode, decode) import AtbashCipher exposing (encode, decode)
@ -35,11 +33,3 @@ tests =
Expect.equal "anobstacleisoftenasteppingstone" Expect.equal "anobstacleisoftenasteppingstone"
(decode "zmlyh gzxov rhlug vmzhg vkkrm thglm v") (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import String import String
@ -148,11 +146,3 @@ uppercaseGibberish length =
gibberishQuestion : Int -> String gibberishQuestion : Int -> String
gibberishQuestion length = gibberishQuestion length =
(gibberish length anyCharacter) ++ "?" (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import DifferenceOfSquares exposing (squareOfSum, sumOfSquares, difference) import DifferenceOfSquares exposing (squareOfSum, sumOfSquares, difference)
@ -37,11 +35,3 @@ tests =
\() -> Expect.equal 25164150 (difference 100) \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Date import Date
@ -39,11 +37,3 @@ date input =
Err reason -> Err reason ->
Debug.crash 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import GradeSchool exposing (addStudent, studentsInGrade, allStudents) import GradeSchool exposing (addStudent, studentsInGrade, allStudents)
@ -59,11 +57,3 @@ tests =
, test "get students in a non-existent grade" <| , test "get students in a non-existent grade" <|
\() -> Expect.equal [] (studentsInGrade 1 GradeSchool.empty) \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Hamming exposing (distance) import Hamming exposing (distance)
@ -39,11 +37,3 @@ tests =
, test "disallow second strand longer" <| , test "disallow second strand longer" <|
\() -> Expect.equal Nothing (distance "ATA" "AGTG") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import HelloWorld exposing (helloWorld) import HelloWorld exposing (helloWorld)
@ -20,11 +18,3 @@ tests =
\() -> \() ->
Expect.equal "Hello, Bob!" (helloWorld (Just "Bob")) 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import LargestSeriesProduct exposing (largestProduct) import LargestSeriesProduct exposing (largestProduct)
@ -45,11 +43,3 @@ tests =
, test "rejects negative span" <| , test "rejects negative span" <|
\() -> Expect.equal Nothing (largestProduct -1 "12345") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Leap import Leap
@ -25,11 +23,3 @@ tests =
, test "y2k" <| , test "y2k" <|
\() -> Expect.equal True (Leap.isLeapYear 2000) \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import ListOps exposing (..) 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 ]) \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import NucleotideCount exposing (nucleotideCounts, version) import NucleotideCount exposing (nucleotideCounts, version)
@ -25,11 +23,3 @@ tests =
Expect.equal { a = 20, t = 21, c = 12, g = 17 } Expect.equal { a = 20, t = 21, c = 12, g = 17 }
(nucleotideCounts "AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC") (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Pangram exposing (isPangram) import Pangram exposing (isPangram)
@ -51,11 +49,3 @@ tests =
Expect.equal True Expect.equal True
(isPangram "Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.") (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import PhoneNumber exposing (getNumber, prettyPrint) import PhoneNumber exposing (getNumber, prettyPrint)
@ -35,11 +33,3 @@ tests =
, test "pretty print with full us phone number" <| , test "pretty print with full us phone number" <|
\() -> Expect.equal (Just "(123) 456-7890") (prettyPrint "11234567890") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Raindrops exposing (raindrops) import Raindrops exposing (raindrops)
@ -41,11 +39,3 @@ tests =
, test "105" <| , test "105" <|
\() -> Expect.equal "PlingPlangPlong" (raindrops 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import RNATranscription exposing (toRNA) import RNATranscription exposing (toRNA)
@ -25,11 +23,3 @@ tests =
, test "correctly handles partially invalid input" <| , test "correctly handles partially invalid input" <|
\() -> Expect.equal (Err 'U') (toRNA "UGAAXXXGACAUG") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import RobotSimulator exposing (defaultRobot, Robot, Bearing(North, East, West, South), turnRight, turnLeft, advance, simulate) 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 : List a -> List a -> List Expect.Expectation
assertionList xs ys = assertionList xs ys =
List.map2 Expect.equal 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import RomanNumerals exposing (toRoman) import RomanNumerals exposing (toRoman)
@ -83,11 +81,3 @@ tests =
Expect.equal ("MMM") Expect.equal ("MMM")
(toRoman 3000) (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import RunLengthEncoding exposing (version, decode, encode) import RunLengthEncoding exposing (version, decode, encode)
@ -37,11 +35,3 @@ tests =
, test "decode unicode" <| , test "decode unicode" <|
\() -> Expect.equal "" (decode "32") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Say exposing (say, SayError(Negative, TooLarge)) import Say exposing (say, SayError(Negative, TooLarge))
@ -86,11 +84,3 @@ tests =
) )
(say 987654321123) (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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import ScrabbleScore exposing (scoreWord) import ScrabbleScore exposing (scoreWord)
@ -33,11 +31,3 @@ tests =
, test "empty input" <| , test "empty input" <|
\() -> Expect.equal 0 (scoreWord "") \() -> 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": [], "exposed-modules": [],
"dependencies": { "dependencies": {
"elm-lang/core": "5.0.0 <= v < 6.0.0", "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-version": "0.18.0 <= v < 0.19.0" "elm-version": "0.18.0 <= v < 0.19.0"
} }

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"postinstall": "elm-package install -y", "postinstall": "elm-package install -y",
"test": "elm-test Tests.elm" "test": "elm-test"
}, },
"dependencies": { "dependencies": {
"elm": "^0.18.0", "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 Test exposing (..)
import Expect import Expect
import Series exposing (slices) import Series exposing (slices)
@ -43,11 +41,3 @@ tests =
Expect.equal (Err "could not convert string 'a' to an Int") Expect.equal (Err "could not convert string 'a' to an Int")
(slices 2 "0123abc") (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