diff --git a/bin/build.sh b/bin/build.sh index a50d449..a0ed0d1 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -5,7 +5,7 @@ echo '-------------------------------------------------------' echo "Checking Formatting" -if [ ! -f "bin/elm-format" ]; then +if [ ! -f "bin/elm-format" ] || [[ ! $(bin/elm-format --help | grep "elm-format-0.18 0.6.1-alpha") ]]; then echo "Installing local copy of elm-format" bin/install-elm-format fi diff --git a/bin/install-elm-format b/bin/install-elm-format index 553e74f..23da76e 100755 --- a/bin/install-elm-format +++ b/bin/install-elm-format @@ -12,7 +12,7 @@ case $(uname) in echo "linux";; esac) -URL=https://github.com/avh4/elm-format/releases/download/0.5.2-alpha/elm-format-0.18-0.5.2-alpha-$OS-x64.tgz +URL=https://github.com/avh4/elm-format/releases/download/0.6.1-alpha/elm-format-0.18-0.6.1-alpha-$OS-x64.tgz curl -L $URL | tar -xvzO > bin/elm-format diff --git a/exercises/grains/tests/Tests.elm b/exercises/grains/tests/Tests.elm index 6fbc08e..4310d67 100644 --- a/exercises/grains/tests/Tests.elm +++ b/exercises/grains/tests/Tests.elm @@ -26,12 +26,13 @@ tests = \() -> Expect.equal Nothing (square 0) , test "negative square raises an exception" <| \() -> Expect.equal Nothing (square -1) - {- - Where are the bigger test values?!? Because Javascript's numbers - can't represent values higher than `Number.MAX_SAFE_INTEGER` - (i.e. 9007199254740991), we chose to exclude these final values - to avoid the weirdness. A bit more information can be found - here: https://github.com/elm-lang/elm-compiler/issues/1246 - -} + + {- + Where are the bigger test values?!? Because Javascript's numbers + can't represent values higher than `Number.MAX_SAFE_INTEGER` + (i.e. 9007199254740991), we chose to exclude these final values + to avoid the weirdness. A bit more information can be found + here: https://github.com/elm-lang/elm-compiler/issues/1246 + -} ] ]