mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Test that openLine will produce open lines.
This commit is contained in:
parent
69307c76d1
commit
6a73248a46
@ -116,6 +116,14 @@ main = hspec $ do
|
||||
Line [ span "*/" ]
|
||||
], Range 0 5)
|
||||
|
||||
describe "openLine" $ do
|
||||
it "should produce the earliest open line in a list" $
|
||||
openLine [
|
||||
Line [ Div (Just "delete") [ span "*/" ] ],
|
||||
Line [ Div (Just "delete") [ span " * Debugging", Break ] ],
|
||||
Line [ Div (Just "delete") [ span "/*", Break ] ]
|
||||
] `shouldBe` (Just $ Line [ Div (Just "delete") [ span "*/" ] ])
|
||||
|
||||
where
|
||||
rightRowText text = rightRow [ Text text ]
|
||||
rightRow xs = Row EmptyLine (Line xs)
|
||||
|
Loading…
Reference in New Issue
Block a user