1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

Tidy up the unchanged diffs spec.

This commit is contained in:
Rob Rix 2017-11-22 10:19:12 -05:00
parent 738ca371bd
commit cda112823a

View File

@ -32,7 +32,6 @@ import Language
import Prelude hiding (readFile)
import Renderer
import Renderer.TOC
import RWS
import Semantic
import Semantic.Task
import Semantic.Util
@ -144,9 +143,8 @@ spec = parallel $ do
let diff = programWithChangeOutsideFunction body
in numTocSummaries diff `shouldBe` 0
prop "equal terms produce identity diffs" $
\a -> let term = defaultFeatureVectorDecorator constructorNameAndConstantFields (a :: Term') in
diffTOC (diffTerms term term) `shouldBe` []
prop "unchanged diffs arent summarized" $
\term -> diffTOC (diffTerms term (term :: Term')) `shouldBe` []
describe "TOCSummary" $ do
it "encodes modified summaries to JSON" $ do