Fix resolveModule Cpp test
This commit is contained in:
parent
f61dd0a9e6
commit
aabbd5ce33
@ -40,8 +40,8 @@ spec = do
|
||||
describe "resolveModule" $ do
|
||||
it "Works when a module given as path uses CPP" $ do
|
||||
dir <- getCurrentDirectory
|
||||
print dir
|
||||
let srcDirs = [dir </> "test/data/target/src"]
|
||||
withLightHscEnv [] $ \env -> runNullLog $ do
|
||||
Just _ <- resolveModule env srcDirs (Left $ dir </> "test/data/target/src/A/B/C/D/E.hs")
|
||||
x <- resolveModule env srcDirs (Left $ dir </> "test/data/target/Cpp.hs")
|
||||
x `shouldBe` Just (ModulePath "test/data/target/Cpp.hs" "Cpp")
|
||||
return ()
|
||||
|
Loading…
Reference in New Issue
Block a user