Skip to content

Conversation

gracjan
Copy link
Contributor

@gracjan gracjan commented Mar 29, 2015

No description provided.

@gracjan
Copy link
Contributor Author

gracjan commented Mar 29, 2015

@kuribas: Something interesting for you. Test for haskell-indentation, each one has form:

(ert-deftest haskell-indentation-check-6 ()
  "let in list comprehension"
  :expected-result :failed
  (haskell-indentation-check
   "fun = [ f | x <- xs"
   "          , y <- ys"
   "          , let c = 123"
   "          , f <- fx x y c ]"
   "          ^"))

Code is as string, last line marks where the indentation points are expected. Run this using:

make check EMACS=/path/to/your/emacs

And it will tell you about expected failures to fix:

Running 14 tests (2015-03-29 16:31:12+0200)
passed   1/14  haskell-indentation-check-1
failed   2/14  haskell-indentation-check-10
passed   3/14  haskell-indentation-check-11
failed   4/14  haskell-indentation-check-12
passed   5/14  haskell-indentation-check-2
failed   6/14  haskell-indentation-check-2a
passed   7/14  haskell-indentation-check-3
failed   8/14  haskell-indentation-check-4
passed   9/14  haskell-indentation-check-5
failed  10/14  haskell-indentation-check-5a
failed  11/14  haskell-indentation-check-6
failed  12/14  haskell-indentation-check-7
passed  13/14  haskell-indentation-check-8
failed  14/14  haskell-indentation-check-9

lukehoersten added a commit that referenced this pull request Apr 22, 2015
Better test cases for haskell-indentation.
@lukehoersten lukehoersten merged commit 3d8984d into haskell:master Apr 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants