mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Test that rangesOfWordsFrom doesn’t produce words for whitespace.
This commit is contained in:
parent
bf9aa915a3
commit
8951bebfa7
@ -129,6 +129,10 @@ main = hspec $ do
|
||||
Line [ Div (Just "delete") [ span " * Debugging", Break ] ]
|
||||
] `shouldBe` Nothing
|
||||
|
||||
describe "rangesOfWordsFrom" $ do
|
||||
it "should produce no ranges for whitespace" $
|
||||
rangesOfWordsFrom 0 " \t\n " `shouldBe` []
|
||||
|
||||
where
|
||||
rightRowText text = rightRow [ Text text ]
|
||||
rightRow xs = Row EmptyLine (Line xs)
|
||||
|
Loading…
Reference in New Issue
Block a user