1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Test that empty diffs have no hunks.

This commit is contained in:
Rob Rix 2015-12-18 09:49:33 -05:00
parent bf8de73934
commit dd924c68dd

View File

@ -1,7 +1,14 @@
module PatchOutputSpec where
import Diff
import PatchOutput
import Range
import Syntax
import Control.Monad.Free
import Test.Hspec
spec :: Spec
spec = do
return ()
describe "hunks" $ do
it "empty diffs have no hunks" $
hunks (Free . Annotated (Info (Range 0 0) mempty, Info (Range 0 0) mempty) $ Leaf "") "" "" `shouldBe` []