From be214210ccd6f82f658f7f6ea6286e42580118a6 Mon Sep 17 00:00:00 2001
From: Erik Simmler <tgecho@gmail.com>
Date: Sun, 28 May 2017 15:19:33 -0400
Subject: [PATCH] =?UTF-8?q?Update=20elm-format=20to=20latest=20=E2=80=9Cst?=
 =?UTF-8?q?able=E2=80=9D=20version=20(0.6.1-alpha)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 bin/build.sh                     |  2 +-
 bin/install-elm-format           |  2 +-
 exercises/grains/tests/Tests.elm | 15 ++++++++-------
 3 files changed, 10 insertions(+), 9 deletions(-)

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
+            -}
             ]
         ]