2015-12-18 17:49:21 +03:00
|
|
|
module PatchOutputSpec where
|
|
|
|
|
2015-12-18 17:49:33 +03:00
|
|
|
import Diff
|
|
|
|
import PatchOutput
|
|
|
|
import Range
|
2015-12-25 00:38:50 +03:00
|
|
|
import Source
|
2015-12-18 17:49:33 +03:00
|
|
|
import Syntax
|
|
|
|
import Control.Monad.Free
|
2015-12-18 17:49:21 +03:00
|
|
|
import Test.Hspec
|
|
|
|
|
|
|
|
spec :: Spec
|
2016-01-05 18:38:51 +03:00
|
|
|
spec = parallel $ do
|
2015-12-18 17:49:33 +03:00
|
|
|
describe "hunks" $ do
|
|
|
|
it "empty diffs have no hunks" $
|
2015-12-30 23:31:27 +03:00
|
|
|
hunks (Free . Annotated (Info (Range 0 0) mempty, Info (Range 0 0) mempty) $ Leaf "") (fromList "", fromList "") `shouldBe` []
|