Update elm-package.json and .elm files to support Elm 0.17

This commit is contained in:
Erik Simmler 2016-05-12 22:26:52 -04:00
parent 3c4e15a23c
commit 7ddb1b57c6
98 changed files with 252 additions and 329 deletions

View file

@ -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:

View 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.

View file

@ -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"
}

View file

@ -1 +1 @@
module Accumulate (..) where
module Accumulate exposing (..)

View file

@ -1,4 +1,4 @@
module Accumulate (..) where
module Accumulate exposing (..)
accumulate : (a -> b) -> List a -> List b

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Allergies (..) where
module Allergies exposing (..)

View file

@ -1,4 +1,4 @@
module Allergies (..) where
module Allergies exposing (..)
import List
import Bitwise

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Anagram (..) where
module Anagram exposing (..)

View file

@ -1,4 +1,4 @@
module Anagram (..) where
module Anagram exposing (..)
import String exposing (toLower, toList)

View file

@ -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

View file

@ -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"
}

View file

@ -1,4 +1,4 @@
module Bob (..) where
module Bob exposing (..)
import String
import Regex

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module DifferenceOfSquares (..) where
module DifferenceOfSquares exposing (..)

View file

@ -1,4 +1,4 @@
module DifferenceOfSquares (..) where
module DifferenceOfSquares exposing (..)
squareOfSum : Int -> Int

View file

@ -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

View file

@ -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"
}

View file

@ -1,2 +1,2 @@
module GradeSchool (..) where
module GradeSchool exposing (..)

View file

@ -1,4 +1,4 @@
module GradeSchool (..) where
module GradeSchool exposing (..)
import Dict exposing (..)

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Hamming (..) where
module Hamming exposing (..)

View file

@ -1,4 +1,4 @@
module Hamming (..) where
module Hamming exposing (..)
import String exposing (length, toList)

View file

@ -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

View file

@ -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"
}

View file

@ -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.

View file

@ -1,4 +1,4 @@
module HelloWorld (..) where
module HelloWorld exposing (..)
helloWorld : Maybe String -> String

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Leap (..) where
module Leap exposing (..)

View file

@ -1,4 +1,4 @@
module Leap (..) where
module Leap exposing (..)
isLeapYear : Int -> Bool

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module ListOps (..) where
module ListOps exposing (..)

View file

@ -1,4 +1,4 @@
module ListOps (..) where
module ListOps exposing (..)
length : List a -> Int

View file

@ -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

View file

@ -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"
}

View file

@ -1,4 +1,4 @@
module NucleotideCount (..) where
module NucleotideCount exposing (..)
version : Int

View file

@ -1,4 +1,4 @@
module NucleotideCount (..) where
module NucleotideCount exposing (..)
import String

View file

@ -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

View file

@ -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"
}

View file

@ -1,4 +1,4 @@
module Pangram (..) where
module Pangram exposing (..)
import String exposing (toLower, contains, fromChar)

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module PhoneNumber (..) where
module PhoneNumber exposing (..)

View file

@ -1,4 +1,4 @@
module PhoneNumber (..) where
module PhoneNumber exposing (..)
import String

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Raindrops (..) where
module Raindrops exposing (..)

View file

@ -1,4 +1,4 @@
module Raindrops (..) where
module Raindrops exposing (..)
import String

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module RNATranscription (..) where
module RNATranscription exposing (..)

View file

@ -1,4 +1,4 @@
module RNATranscription (toRNA) where
module RNATranscription exposing (toRNA)
import String

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module RobotSimulator (..) where
module RobotSimulator exposing (..)

View file

@ -1,4 +1,4 @@
module RobotSimulator (..) where
module RobotSimulator exposing (..)
import String

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module RunLengthEncoding (..) where
module RunLengthEncoding exposing (..)

View file

@ -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)

View file

@ -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

View file

@ -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 "32"))
, propertyTests
]
port runner : Signal (Task.Task x ())
port runner =
Console.run (consoleRunner tests)
main : Program Never
main =
runSuite tests

View file

@ -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"
}

View file

@ -1 +1 @@
module Series (..) where
module Series exposing (..)

View file

@ -1,4 +1,4 @@
module Series (..) where
module Series exposing (..)
import String
import List

View file

@ -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

View file

@ -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"
}

View file

@ -1,4 +1,4 @@
module SpaceAge (..) where
module SpaceAge exposing (..)
type Planet
= Mercury

View file

@ -1,4 +1,4 @@
module SpaceAge (..) where
module SpaceAge exposing (..)
type Planet

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Strain (..) where
module Strain exposing (..)

View file

@ -1,4 +1,4 @@
module Strain (..) where
module Strain exposing (..)
import List

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Sublist (..) where
module Sublist exposing (..)

View file

@ -1,4 +1,4 @@
module Sublist (..) where
module Sublist exposing (..)
version : Int

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module SumOfMultiples (..) where
module SumOfMultiples exposing (..)

View file

@ -1,4 +1,4 @@
module SumOfMultiples (..) where
module SumOfMultiples exposing (..)
sumOfMultiples : List Int -> Int -> Int

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module Triangle (..) where
module Triangle exposing (..)

View file

@ -1,4 +1,4 @@
module Triangle (..) where
module Triangle exposing (..)
import Set

View file

@ -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

View file

@ -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"
}

View file

@ -1 +1 @@
module WordCount (..) where
module WordCount exposing (..)

View file

@ -1,4 +1,4 @@
module WordCount (..) where
module WordCount exposing (..)
import String
import Dict exposing (Dict)

View file

@ -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

View file

@ -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"
}