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:
parent
bf8de73934
commit
dd924c68dd
@ -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` []
|
||||
|
Loading…
Reference in New Issue
Block a user