1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 02:58:36 +03:00

SomeError.

This commit is contained in:
Rob Rix 2018-10-24 10:32:05 -04:00
parent 25b2c3c4e9
commit 83ac081cec

View File

@ -36,7 +36,7 @@ spec config = parallel $ do
it "evaluates load with wrapper" $ do it "evaluates load with wrapper" $ do
(_, (_, res)) <- evaluate ["load-wrap.rb", "foo.rb"] (_, (_, res)) <- evaluate ["load-wrap.rb", "foo.rb"]
res `shouldBe` Left (SomeExc (inject @(BaseError (EnvironmentError Precise)) (BaseError (ModuleInfo "load-wrap.rb") emptySpan (FreeVariable "foo")))) res `shouldBe` Left (SomeError (inject @(BaseError (EnvironmentError Precise)) (BaseError (ModuleInfo "load-wrap.rb") emptySpan (FreeVariable "foo"))))
it "evaluates subclass" $ do it "evaluates subclass" $ do
(_, (heap, res)) <- evaluate ["subclass.rb"] (_, (heap, res)) <- evaluate ["subclass.rb"]