mirror of
https://github.com/correl/elm.git
synced 2024-12-18 11:06:17 +00:00
Update elm-package.json and .elm files to support Elm 0.17
This commit is contained in:
parent
3c4e15a23c
commit
7ddb1b57c6
98 changed files with 252 additions and 329 deletions
|
@ -7,7 +7,7 @@ sudo: false
|
|||
install:
|
||||
- nvm install 0.12
|
||||
- nvm use 0.12
|
||||
- npm install -g elm@0.16.0 elm-test@0.16.0
|
||||
- npm install -g elm@0.17.0 elm-test@0.16.1-alpha4
|
||||
- elm package install -y
|
||||
|
||||
script:
|
||||
|
|
12
README.md
12
README.md
|
@ -44,7 +44,7 @@ Please keep the following in mind:
|
|||
- Each exercise should have a test suite, an example solution, a template file for the real implementation and an `elm-package.json` file with the `elm-test` and `elm-console` dependencies. The CI build expects files to be named using the following convention. The example solution should be named `ExerciseModuleName.example`. The template file should be named `ExerciseModuleName.elm`. Test file should be named `ExerciseModuleNameTest.elm`.
|
||||
|
||||
- The recommended workflow when working on an exercise is to first create the implementation and test files, `ExerciseModuleName.elm` and `ExerciseModuleNameTest.elm`.
|
||||
- Test the new exercise directly by running `elm-test exercises/exercise_module_name/ExerciseModuleNameTest.elm`.
|
||||
- Test the new exercise directly by running `elm-test exercises/exercise_module_name/ExerciseModuleNameTest.elm`.
|
||||
|
||||
- Once the implementation of the exercise is complete, move `ExerciseModuleName.elm` to `ExerciseModuleName.example` and create the template file.
|
||||
|
||||
|
@ -57,10 +57,8 @@ Please keep the following in mind:
|
|||
- Test files should use the following format:
|
||||
|
||||
```elm
|
||||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
|
||||
|
||||
|
@ -73,9 +71,9 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
```
|
||||
|
||||
- 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.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -32,10 +32,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"NoRedInk/elm-check": "3.0.0 <= v < 4.0.0",
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Accumulate (..) where
|
||||
module Accumulate exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Accumulate (..) where
|
||||
module Accumulate exposing (..)
|
||||
|
||||
|
||||
accumulate : (a -> b) -> List a -> List b
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Accumulate exposing (accumulate)
|
||||
import String
|
||||
|
@ -31,6 +29,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Allergies (..) where
|
||||
module Allergies exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Allergies (..) where
|
||||
module Allergies exposing (..)
|
||||
|
||||
import List
|
||||
import Bitwise
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Allergies exposing (isAllergicTo, toList)
|
||||
import List
|
||||
|
@ -68,6 +66,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Anagram (..) where
|
||||
module Anagram exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Anagram (..) where
|
||||
module Anagram exposing (..)
|
||||
|
||||
import String exposing (toLower, toList)
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Anagram exposing (detect)
|
||||
|
||||
|
@ -133,6 +131,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Bob (..) where
|
||||
module Bob exposing (..)
|
||||
|
||||
import String
|
||||
import Regex
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import String
|
||||
import Char
|
||||
|
@ -58,7 +56,7 @@ listOfCharacters length characterList =
|
|||
|
||||
gibberish : Int -> Random.Generator Char -> String
|
||||
gibberish length characterList =
|
||||
fst (Random.generate (Random.map String.fromList (listOfCharacters length characterList)) (Random.initialSeed 424242))
|
||||
fst (Random.step (Random.map String.fromList (listOfCharacters length characterList)) (Random.initialSeed 424242))
|
||||
|
||||
|
||||
uppercaseGibberish : Int -> String
|
||||
|
@ -71,6 +69,6 @@ gibberishQuestion length =
|
|||
(gibberish length anyCharacter) ++ "?"
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module DifferenceOfSquares (..) where
|
||||
module DifferenceOfSquares exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module DifferenceOfSquares (..) where
|
||||
module DifferenceOfSquares exposing (..)
|
||||
|
||||
|
||||
squareOfSum : Int -> Int
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import DifferenceOfSquares exposing (squareOfSum, sumOfSquares, difference)
|
||||
|
||||
|
@ -32,6 +30,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
module GradeSchool (..) where
|
||||
module GradeSchool exposing (..)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module GradeSchool (..) where
|
||||
module GradeSchool exposing (..)
|
||||
|
||||
import Dict exposing (..)
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import GradeSchool exposing (addStudent, studentsInGrade, allStudents)
|
||||
|
||||
|
@ -72,6 +70,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Hamming (..) where
|
||||
module Hamming exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Hamming (..) where
|
||||
module Hamming exposing (..)
|
||||
|
||||
import String exposing (length, toList)
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Hamming exposing (distance)
|
||||
|
||||
|
@ -55,6 +53,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ file. It has to stay just the way it is.
|
|||
-}
|
||||
|
||||
|
||||
module HelloWorld (..) where
|
||||
module HelloWorld exposing (..)
|
||||
|
||||
-- It's good style to include a types at the top level of your modules.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module HelloWorld (..) where
|
||||
module HelloWorld exposing (..)
|
||||
|
||||
|
||||
helloWorld : Maybe String -> String
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import HelloWorld exposing (helloWorld)
|
||||
|
||||
|
@ -16,6 +14,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Leap (..) where
|
||||
module Leap exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Leap (..) where
|
||||
module Leap exposing (..)
|
||||
|
||||
|
||||
isLeapYear : Int -> Bool
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Leap
|
||||
|
||||
|
@ -20,6 +18,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module ListOps (..) where
|
||||
module ListOps exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module ListOps (..) where
|
||||
module ListOps exposing (..)
|
||||
|
||||
|
||||
length : List a -> Int
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import ListOps exposing (..)
|
||||
|
||||
|
@ -63,6 +61,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module NucleotideCount (..) where
|
||||
module NucleotideCount exposing (..)
|
||||
|
||||
|
||||
version : Int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module NucleotideCount (..) where
|
||||
module NucleotideCount exposing (..)
|
||||
|
||||
import String
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import NucleotideCount exposing (nucleotideCounts, version)
|
||||
|
||||
|
@ -34,6 +32,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Pangram (..) where
|
||||
module Pangram exposing (..)
|
||||
|
||||
import String exposing (toLower, contains, fromChar)
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Pangram exposing (isPangram)
|
||||
|
||||
|
@ -43,6 +41,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module PhoneNumber (..) where
|
||||
module PhoneNumber exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module PhoneNumber (..) where
|
||||
module PhoneNumber exposing (..)
|
||||
|
||||
import String
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import PhoneNumber exposing (getNumber, prettyPrint)
|
||||
|
||||
|
@ -49,6 +47,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Raindrops (..) where
|
||||
module Raindrops exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Raindrops (..) where
|
||||
module Raindrops exposing (..)
|
||||
|
||||
import String
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Raindrops exposing (raindrops)
|
||||
|
||||
|
@ -28,6 +26,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module RNATranscription (..) where
|
||||
module RNATranscription exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module RNATranscription (toRNA) where
|
||||
module RNATranscription exposing (toRNA)
|
||||
|
||||
import String
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import RNATranscription exposing (toRNA)
|
||||
|
||||
|
@ -34,6 +32,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module RobotSimulator (..) where
|
||||
module RobotSimulator exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module RobotSimulator (..) where
|
||||
module RobotSimulator exposing (..)
|
||||
|
||||
import String
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import RobotSimulator exposing (defaultRobot, Robot, Bearing(North, East, West, South), turnRight, turnLeft, advance, simulate)
|
||||
|
||||
|
@ -126,6 +124,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module RunLengthEncoding (..) where
|
||||
module RunLengthEncoding exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module RunLengthEncoding (version, encode, decode) where
|
||||
module RunLengthEncoding exposing (version, encode, decode)
|
||||
|
||||
import String exposing (fromChar)
|
||||
import List exposing (head, tail)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module RunLengthEncodingPropertyChecks (propertyTests) where
|
||||
module RunLengthEncodingPropertyChecks exposing (propertyTests)
|
||||
|
||||
import ElmTest
|
||||
import Check exposing (suite, claim, that, is, for, quickCheck)
|
||||
|
@ -10,6 +10,8 @@ import Char
|
|||
|
||||
|
||||
{-
|
||||
Currently disabled until elm-check is updated to support Elm 0.17
|
||||
|
||||
Welcome! This is a property based test which will generate a bunch of random
|
||||
test cases in an attempt to find edge cases in your solution. If all goes well,
|
||||
any code that passes the regular tests should be fine here as well. If it goes
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import RunLengthEncoding exposing (version, decode, encode)
|
||||
import RunLengthEncodingPropertyChecks exposing (propertyTests)
|
||||
|
||||
|
||||
tests : Test
|
||||
|
@ -50,10 +47,9 @@ tests =
|
|||
, test
|
||||
"decode unicode"
|
||||
(assertEqual "⏰⚽⚽⚽⭐⭐⏰" (decode "⏰3⚽2⭐⏰"))
|
||||
, propertyTests
|
||||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,10 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"NoRedInk/elm-check": "3.0.0 <= v < 4.0.0",
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Series (..) where
|
||||
module Series exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Series (..) where
|
||||
module Series exposing (..)
|
||||
|
||||
import String
|
||||
import List
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Series exposing (slices)
|
||||
|
||||
|
@ -61,6 +59,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module SpaceAge (..) where
|
||||
module SpaceAge exposing (..)
|
||||
|
||||
type Planet
|
||||
= Mercury
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module SpaceAge (..) where
|
||||
module SpaceAge exposing (..)
|
||||
|
||||
|
||||
type Planet
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import SpaceAge exposing (Planet(..), ageOn)
|
||||
|
||||
|
@ -37,6 +35,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Strain (..) where
|
||||
module Strain exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Strain (..) where
|
||||
module Strain exposing (..)
|
||||
|
||||
import List
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Strain exposing (keep, discard)
|
||||
import String
|
||||
|
@ -106,6 +104,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Sublist (..) where
|
||||
module Sublist exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Sublist (..) where
|
||||
module Sublist exposing (..)
|
||||
|
||||
|
||||
version : Int
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Sublist exposing (version, sublist, ListComparison(..))
|
||||
|
||||
|
@ -70,6 +68,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module SumOfMultiples (..) where
|
||||
module SumOfMultiples exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module SumOfMultiples (..) where
|
||||
module SumOfMultiples exposing (..)
|
||||
|
||||
|
||||
sumOfMultiples : List Int -> Int -> Int
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import SumOfMultiples exposing (sumOfMultiples)
|
||||
|
||||
|
@ -19,6 +17,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module Triangle (..) where
|
||||
module Triangle exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module Triangle (..) where
|
||||
module Triangle exposing (..)
|
||||
|
||||
import Set
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Triangle exposing (triangleKind)
|
||||
|
||||
|
@ -58,6 +56,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
module WordCount (..) where
|
||||
module WordCount exposing (..)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module WordCount (..) where
|
||||
module WordCount exposing (..)
|
||||
|
||||
import String
|
||||
import Dict exposing (Dict)
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
module Main (..) where
|
||||
module Main exposing (..)
|
||||
|
||||
import Task
|
||||
import Console
|
||||
import ElmTest exposing (..)
|
||||
import Dict exposing (Dict)
|
||||
import WordCount exposing (wordCount)
|
||||
|
@ -50,6 +48,6 @@ tests =
|
|||
]
|
||||
|
||||
|
||||
port runner : Signal (Task.Task x ())
|
||||
port runner =
|
||||
Console.run (consoleRunner tests)
|
||||
main : Program Never
|
||||
main =
|
||||
runSuite tests
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"summary": "Exercism problems in Elm.",
|
||||
"repository": "https://github.com/exercism/xelm.git",
|
||||
"license": "BSD3",
|
||||
|
@ -8,9 +8,8 @@
|
|||
],
|
||||
"exposed-modules": [],
|
||||
"dependencies": {
|
||||
"deadfoxygrandpa/elm-test": "3.0.1 <= v < 4.0.0",
|
||||
"elm-lang/core": "2.0.0 <= v < 4.0.0",
|
||||
"laszlopandy/elm-console": "1.1.0 <= v < 2.0.0"
|
||||
"elm-community/elm-test": "1.0.0 <= v < 2.0.0",
|
||||
"elm-lang/core": "4.0.0 <= v < 5.0.0"
|
||||
},
|
||||
"elm-version": "0.15.0 <= v < 0.17.0"
|
||||
"elm-version": "0.17.0 <= v < 0.18.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue