mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Fix tests.
This commit is contained in:
parent
c7b41a3594
commit
6b763dd5e9
@ -345,7 +345,6 @@ test-suite test
|
||||
, Data.Functor.Classes.Generic.Spec
|
||||
, Data.Functor.Listable
|
||||
, Data.Graph.Spec
|
||||
, Data.GitHub.Spec
|
||||
, Data.Mergeable
|
||||
, Data.Range.Spec
|
||||
, Data.Scientific.Spec
|
||||
|
@ -35,9 +35,9 @@ spec = parallel $ do
|
||||
let lexicalEdges = Map.singleton Lexical [ currentScope' ]
|
||||
x = SpecHelpers.name "x"
|
||||
associatedScope <- newScope lexicalEdges
|
||||
declare (ScopeGraph.Declaration "identity") Default Public emptySpan ScopeGraph.Unknown (Just associatedScope)
|
||||
declare (ScopeGraph.Declaration "identity") Default Public emptySpan (Just associatedScope)
|
||||
withScope associatedScope $ do
|
||||
declare (Declaration x) Default Public emptySpan ScopeGraph.Unknown Nothing
|
||||
declare (Declaration x) Default Public emptySpan Nothing
|
||||
identity <- function "identity" [ x ]
|
||||
(SpecEff (Heap.lookupSlot (ScopeGraph.Declaration (SpecHelpers.name "x")) >>= deref)) associatedScope
|
||||
val <- integer 123
|
||||
|
@ -11,7 +11,6 @@ import qualified Data.Diff.Spec
|
||||
import qualified Data.Abstract.Name.Spec
|
||||
import qualified Data.Abstract.Path.Spec
|
||||
import qualified Data.Functor.Classes.Generic.Spec
|
||||
import qualified Data.GitHub.Spec
|
||||
import qualified Data.Graph.Spec
|
||||
import qualified Data.Range.Spec
|
||||
import qualified Data.Scientific.Spec
|
||||
@ -56,7 +55,6 @@ main = do
|
||||
describe "Data.Abstract.Path" Data.Abstract.Path.Spec.spec
|
||||
describe "Data.Abstract.Name" Data.Abstract.Name.Spec.spec
|
||||
describe "Data.Functor.Classes.Generic" Data.Functor.Classes.Generic.Spec.spec
|
||||
describe "Data.GitHub" Data.GitHub.Spec.spec
|
||||
describe "Data.Range" Data.Range.Spec.spec
|
||||
describe "Data.Scientific" Data.Scientific.Spec.spec
|
||||
describe "Data.Semigroup.App" Data.Semigroup.App.Spec.spec
|
||||
|
@ -51,7 +51,7 @@ import Data.List.NonEmpty as X (NonEmpty(..))
|
||||
import Data.Range as X
|
||||
import Data.Semilattice.Lower as X
|
||||
import Data.Source as X
|
||||
import Data.Span as X
|
||||
import Data.Span as X hiding (HasSpan(..))
|
||||
import Data.String
|
||||
import Data.Sum
|
||||
import Data.Term as X
|
||||
|
Loading…
Reference in New Issue
Block a user