mirror of
https://github.com/correl/elm.git
synced 2024-12-22 19:17:27 +00:00
Update elm-format to latest “stable” version (0.6.1-alpha)
This commit is contained in:
parent
6e33e3dc16
commit
be214210cc
3 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
-}
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue