1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00
semantic/test/DiffSummarySpec.hs
2016-05-17 13:09:14 -04:00

16 lines
362 B
Haskell

module DiffSummarySpec where
import Test.Hspec
import Patch
import DiffSummary
testSummary :: DiffSummary String
testSummary = DiffSummary { description = "lol", patch = Insert DiffInfo, parentAnnotations = [] }
spec :: Spec
spec = parallel $ do
describe "show" $ do
it "should print adds" $
show testSummary `shouldBe` "Added an 'a' expression"