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:
parent
738ca371bd
commit
cda112823a
@ -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 aren’t summarized" $
|
||||
\term -> diffTOC (diffTerms term (term :: Term')) `shouldBe` []
|
||||
|
||||
describe "TOCSummary" $ do
|
||||
it "encodes modified summaries to JSON" $ do
|
||||
|
Loading…
Reference in New Issue
Block a user