Skip to content

Mark some indentation tests as passing #936

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 21 additions & 10 deletions tests/haskell-indentation-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -152,37 +152,38 @@ function = do
((2 0) 2)
((3 0) 0 2 11))

(hindent-test "3* Import statememnt symbol list 1""
(hindent-test "3 Import statememnt symbol list 1""
import Control.Concurrent
( forkIO,
killThread )"
((1 0) 0)
((2 0) 0 2)
((3 0) 4)
((4 0) 0))
((4 0) 0 2))

(hindent-test "4* Import statememnt symbol list 2""
(hindent-test "4 Import statememnt symbol list 2""
import Control.Concurrent
( forkIO
, killThread )"
, killThread )
"
((1 0) 0)
((2 0) 0 2)
((3 0) 2)
((4 0) 0))
((4 0) 0 2))

(hindent-test "5* List comprehension""
(hindent-test "5 List comprehension""
fun = [ x | y
, z ]"
((1 0) 0)
((2 0) 10)
((3 0) 0))
((3 0) 0 6))

(hindent-test "5a* List comprehension""
fun = [ x | y,
z ]"
((1 0) 0)
((2 0) 12)
((3 0) 0))
((3 0) 0 6))

(hindent-test "6* \"let\" in list comprehension""
fun = [ f | x <- xs
Expand All @@ -193,7 +194,7 @@ fun = [ f | x <- xs
((2 0) 10)
((3 0) 10)
((4 0) 10)
((5 0) 0))
((5 0) 0 6))

(hindent-test "6u* \"let\" in list comprehension""
fun = [ f | x ← xs
Expand Down Expand Up @@ -636,7 +637,17 @@ data T = T {
;; should be just 0
((5 0) 0 9))

(hindent-test "35* baroque construct which causes parse error" "
(hindent-test "35 baroque construct which causes parse error" "
az = Projection
{ unproject = do
case x of
_ -> return
, maxR = pi
}
"
((6 0) 2))

(hindent-test "35a* parse a backslash properly" "
az = Projection
{ unproject = \x -> do
case x of
Expand Down