diff options
Diffstat (limited to 'test/linter')
-rw-r--r-- | test/linter/test_haskell_hls.vader | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/linter/test_haskell_hls.vader b/test/linter/test_haskell_hls.vader index 4452d53c..59a50078 100644 --- a/test/linter/test_haskell_hls.vader +++ b/test/linter/test_haskell_hls.vader @@ -30,3 +30,13 @@ Execute(Should accept configuration settings): AssertLSPConfig {} let b:ale_haskell_hls_config = {'haskell': {'maxCompletions': 250}} AssertLSPConfig {'haskell': {'maxCompletions': 250}} + +Execute(We should detect the root with cabal.project files, preferred over *.cabal files): + call ale#test#SetFilename('../test-files/haskell/haskell-packages-project/package-a/src/folder/dummy.hs') + + AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-packages-project') + +Execute(We should a project root with *.cabal files): + call ale#test#SetFilename('../test-files/haskell/haskell-simple-package/package-a/src/folder/dummy.hs') + + AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-simple-package/package-a') |