diff options
| author | stephan-cr <stephan.cr@gmx.de> | 2024-11-02 15:10:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-02 16:10:46 +0200 |
| commit | 9b466af28bac6d61fd0e717f1a4b0fcd2f18f37f (patch) | |
| tree | dc910f6d419a9bdf2473612638d1ebbaaf569307 /test | |
| parent | 0d71b961663bf9e47f049b320f79a47bee6cc657 (diff) | |
Add Zig project discovery (#1918)
Diffstat (limited to 'test')
| -rw-r--r-- | test/projectile-test.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/projectile-test.el b/test/projectile-test.el index 472fb3a..d1d7695 100644 --- a/test/projectile-test.el +++ b/test/projectile-test.el @@ -1363,7 +1363,16 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'. "project/Project.toml") (let ((projectile-indexing-method 'native)) (spy-on 'projectile-project-root :and-return-value (file-truename (expand-file-name "project/"))) - (expect (projectile-detect-project-type) :to-equal 'julia)))))) + (expect (projectile-detect-project-type) :to-equal 'julia))))) + (it "detects project-type for Zig projects" + (projectile-test-with-sandbox + (projectile-test-with-files + ("project/" + "project/src/" + "project/build.zig.zon") + (let ((projectile-indexing-method 'native)) + (spy-on 'projectile-project-root :and-return-value (file-truename (expand-file-name "project/"))) + (expect (projectile-detect-project-type) :to-equal 'zig)))))) (describe "projectile-dirname-matching-count" (it "counts matching dirnames ascending file paths" |
