Skip to content

Commit

Permalink
Add completion tests for records. (haskell#804)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevanla authored and pepeiborra committed Oct 5, 2020
1 parent 91a2590 commit a99ce1f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,18 @@ localCompletionTests = [
"class"
["bar :: Xx", "xxx = ()", "-- | haddock", "class Xxx a"]
(Position 0 9)
[("Xxx", CiClass, False, True)]
[("Xxx", CiClass, False, True)],
completionTest
"records"
["data Person = Person { _personName:: String, _personAge:: Int}", "bar = Person { _pers }" ]
(Position 1 19)
[("_personName", CiFunction, False, True),
("_personAge", CiFunction, False, True)],
completionTest
"recordsConstructor"
["data XxRecord = XyRecord { x:: String, y:: Int}", "bar = Xy" ]
(Position 1 19)
[("XyRecord", CiConstructor, False, True)]
]

nonLocalCompletionTests :: [TestTree]
Expand Down

0 comments on commit a99ce1f

Please sign in to comment.