mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
16 lines
375 B
Haskell
16 lines
375 B
Haskell
module PatchOutputSpec where
|
|
|
|
import Diff
|
|
import PatchOutput
|
|
import Range
|
|
import Source
|
|
import Syntax
|
|
import Control.Monad.Free
|
|
import Test.Hspec
|
|
|
|
spec :: Spec
|
|
spec = parallel $ do
|
|
describe "hunks" $ do
|
|
it "empty diffs have no hunks" $
|
|
hunks (Free . Annotated (Info (Range 0 0) mempty, Info (Range 0 0) mempty) $ Leaf "") (fromList "", fromList "") `shouldBe` []
|