1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Test that the empty string doesn’t have any word ranges in it.

This commit is contained in:
Rob Rix 2015-12-14 12:46:53 -05:00
parent 8951bebfa7
commit ce5854e019

View File

@ -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` []