Skip to content

Commit

Permalink
Update elm-format to latest “stable” version (0.6.1-alpha)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgecho committed May 28, 2017
1 parent 6e33e3d commit be21421
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/install-elm-format
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 8 additions & 7 deletions exercises/grains/tests/Tests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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
-}
]
]

0 comments on commit be21421

Please sign in to comment.