1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00
semantic/test/PatchOutputSpec.hs
2015-12-18 09:49:33 -05:00

15 lines
329 B
Haskell

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