[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 706ac40ec2 193/351: Make `fixtures' a c
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 706ac40ec2 193/351: Make `fixtures' a constant (#176) |
Date: |
Thu, 13 Jun 2024 18:38:52 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 706ac40ec2abb75687ff5700b73ccf515a2bd37e
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Make `fixtures' a constant (#176)
---
ert-tests/editorconfig-core-handle.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/ert-tests/editorconfig-core-handle.el
b/ert-tests/editorconfig-core-handle.el
index 41d96105fb..8447c6766a 100644
--- a/ert-tests/editorconfig-core-handle.el
+++ b/ert-tests/editorconfig-core-handle.el
@@ -1,10 +1,11 @@
(require 'editorconfig-core-handle)
+(defconst fixtures (concat (file-name-directory load-file-name)
+ "fixtures/"))
+
(ert-deftest test-editorconfig-core-handle ()
;; handle.ini
- (let* ((fixtures (concat default-directory
- "ert-tests/fixtures/"))
- (conf (concat fixtures
+ (let* ((conf (concat fixtures
"handle.ini"))
(handle (editorconfig-core-handle conf)))
(should (editorconfig-core-handle-root-p handle))
@@ -17,9 +18,7 @@
"a.js"))
'((("key1" . "value1")) (("key2" . "value2"))))))
;; Test twice for checking cache
- (let* ((fixtures (concat default-directory
- "ert-tests/fixtures/"))
- (conf (concat fixtures
+ (let* ((conf (concat fixtures
"handle.ini"))
(handle (editorconfig-core-handle conf)))
(should (editorconfig-core-handle-root-p handle))
@@ -33,9 +32,7 @@
'((("key1" . "value1")) (("key2" . "value2"))))))
;; handle2.ini
- (let* ((fixtures (concat default-directory
- "ert-tests/fixtures/"))
- (conf (concat fixtures
+ (let* ((conf (concat fixtures
"handle2.ini"))
(handle (editorconfig-core-handle conf)))
(should-not (editorconfig-core-handle-root-p handle))
- [nongnu] scratch/editorconfig-cc 0b314fcbea 135/351: Update README for some variables, (continued)
- [nongnu] scratch/editorconfig-cc 0b314fcbea 135/351: Update README for some variables, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 90fba8ee80 164/351: Add doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 7ab129a73b 096/351: Add a comment for contributors, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 508e854392 107/351: Trivial commentary fix, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 49421bc1a4 123/351: Add one space to editorconfig-mode lighter text, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc f0abc53ff0 157/351: Fix fnmatch for new cases, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc e867da296c 124/351: Reindent using Emacs-lisp style., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d8742edc38 168/351: Fix make doc command, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ccfd1910f4 171/351: Remove unused variable, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc efffe74bbf 166/351: Remove doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 706ac40ec2 193/351: Make `fixtures' a constant (#176),
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 4b3784445a 180/351: Add trim-trailing-ws tests, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b6d0bb7757 201/351: Do not call major-mode when already enabled (#178), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 642ff1b62f 215/351: Use ws-butler when enabled and available., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9fdc9cc689 218/351: Add variable editorconfig-trim-whitespaces-mode, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 96123213ed 229/351: Add support for Emacs24.5, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc de83e09632 243/351: Update docstring, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4beeb9c830 253/351: Make editorconfig-properties-hash permanetn-local, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ee5b70f1e2 068/351: editorocnfig-core: Throw error when parsing .editorconfig failed, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 3bdd68d5af 069/351: Add tcl-mode indentation support, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 32fb0d6b9c 056/351: Use `require` instead of `load` in usage example, Stefan Monnier, 2024/06/13