Fix resolveModule test again
This commit is contained in:
parent
2c9b79449a
commit
9dc7a9375e
@ -41,7 +41,6 @@ spec = do
|
|||||||
it "Works when a module given as path uses CPP" $ do
|
it "Works when a module given as path uses CPP" $ do
|
||||||
dir <- getCurrentDirectory
|
dir <- getCurrentDirectory
|
||||||
let srcDirs = [dir </> "test/data/target/src"]
|
let srcDirs = [dir </> "test/data/target/src"]
|
||||||
withLightHscEnv [] $ \env -> runNullLog $ do
|
x <- withLightHscEnv [] $ \env -> runNullLog $ do
|
||||||
x <- resolveModule env srcDirs (Left $ dir </> "test/data/target/Cpp.hs")
|
resolveModule env srcDirs (Left $ dir </> "test/data/target/Cpp.hs")
|
||||||
x `shouldBe` Just (ModulePath "test/data/target/Cpp.hs" "Cpp")
|
liftIO $ x `shouldBe` Just (ModulePath "Cpp" $ dir </> "test/data/target/Cpp.hs")
|
||||||
return ()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user