Skip to content

Commit

Permalink
stop using goto-line as recommended by emacs help on goto-line
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantm committed Jun 12, 2014
1 parent f7f1a17 commit 5ffbf1d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/haskell-sort-imports-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
(ert-deftest single-line ()
(should (with-temp-buffer
(insert "import A\n")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import A\n"))))
Expand All @@ -38,7 +38,7 @@
(insert "import A
import B
")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import A
Expand All @@ -48,7 +48,7 @@ import B
(insert "import qualified A
import B
")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import qualified A
Expand All @@ -58,7 +58,7 @@ import B
(insert "import qualified \"mtl\" A
import B
")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import qualified \"mtl\" A
Expand All @@ -70,7 +70,7 @@ import B
(insert "import B
import A
")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import A
Expand All @@ -83,7 +83,8 @@ import B
import B
import A
")
(goto-line 2)
(goto-char (point-min))
(forward-line)
(haskell-sort-imports)
(string= (buffer-string)
"module A where
Expand All @@ -96,7 +97,8 @@ import B
import B
import A
")
(goto-line 3)
(goto-char (point-min))
(forward-line 2)
(haskell-sort-imports)
(string= (buffer-string)
"module C where
Expand All @@ -115,7 +117,7 @@ import Data.Aeson.Parser.Internal (decodeWith, decodeStrictWith,
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
")
(goto-line 1)
(goto-char (point-min))
(haskell-sort-imports)
(string= (buffer-string)
"import Data.Aeson.Encode (encode)
Expand Down

0 comments on commit 5ffbf1d

Please sign in to comment.