diff options
Diffstat (limited to 'test/tests.el')
-rw-r--r-- | test/tests.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tests.el b/test/tests.el index e097244..efad2d0 100644 --- a/test/tests.el +++ b/test/tests.el @@ -6,10 +6,12 @@ (unintern symbol))))) ;;; Tests +(defvar stack-test-data-dir "data-samples/" + "") (defun stack-test-sample-data (method &optional directory) - (let ((file (concat "data-samples/" - (when directory (concat directory "/")) + (let ((file (concat (when directory (concat directory "/")) + stack-test-data-dir method ".el"))) (when (file-exists-p file) (with-temp-buffer |