Update exercise support files to npm + elm 0.18

This commit is contained in:
Erik Simmler 2016-12-17 14:28:59 -05:00
parent a41a6b0468
commit 3b35718196
146 changed files with 437 additions and 147 deletions

View file

@ -40,7 +40,7 @@ do
mv "$exercise_dir/$exercise_name.elm" "$exercise_dir/$exercise_name.impl"
mv "$exercise_dir/$exercise_name.example.elm" "$exercise_dir/$exercise_name.elm"
echo '-------------------------------------------------------'
echo "Testing $exercise"
echo "Testing $exercise_name"
# prevent elm-test from installing dependencies
mv $exercise_dir/elm-package.json $exercise_dir/elm-package.json.disabled
@ -50,7 +50,7 @@ do
# capture result from last command (elm-test)
if [ $? -ne 0 ]; then
TEST_RESULT=1
FAILED_EXERCISES+="$exercise\n"
FAILED_EXERCISES+="$exercise_name\n"
fi
# be kind, rewind

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -31,7 +31,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -50,7 +50,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -93,7 +93,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -37,7 +37,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -150,7 +150,7 @@ gibberishQuestion length =
(gibberish length anyCharacter) ++ "?"
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -39,7 +39,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -41,7 +41,7 @@ date input =
Debug.crash reason
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -61,7 +61,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -41,7 +41,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -47,7 +47,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -27,7 +27,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -69,7 +69,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -27,7 +27,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -49,7 +49,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -37,7 +37,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -43,7 +43,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -27,7 +27,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -142,7 +142,7 @@ assertionList xs ys =
List.map2 Expect.equal xs ys
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -85,7 +85,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

View file

@ -1,2 +0,0 @@
#!/usr/bin/env bash
echo "We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm"

View file

@ -1,6 +1,6 @@
port module Main exposing (..)
import Test.Runner.Node exposing (run)
import Test.Runner.Node exposing (run, TestProgram)
import Json.Encode exposing (Value)
import Test exposing (..)
import Expect
@ -39,7 +39,7 @@ tests =
]
main : Program Value
main : TestProgram
main =
run emit tests

View file

@ -0,0 +1,13 @@
{
"description": "Excercism/Elm",
"repository": "https://github.com/exercism/xelm.git",
"license": "MIT",
"scripts": {
"postinstall": "elm-package install -y",
"test": "elm-test Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}

View file

@ -1 +0,0 @@
ECHO We've changed how tests are run! Please review the latest install/running docs at http://exercism.io/languages/elm and report any issues at https://github.com/exercism/xelm

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