mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Test that the empty string doesn’t have any word ranges in it.
This commit is contained in:
parent
8951bebfa7
commit
ce5854e019
@ -130,6 +130,9 @@ main = hspec $ do
|
||||
] `shouldBe` Nothing
|
||||
|
||||
describe "rangesOfWordsFrom" $ do
|
||||
it "should produce no ranges for the empty string" $
|
||||
rangesOfWordsFrom 0 [] `shouldBe` []
|
||||
|
||||
it "should produce no ranges for whitespace" $
|
||||
rangesOfWordsFrom 0 " \t\n " `shouldBe` []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user