aboutsummaryrefslogtreecommitdiff
path: root/tests.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-10-30 21:50:59 -0400
committerSean Allred <code@seanallred.com>2014-10-30 21:50:59 -0400
commitbc483a2a41c69214a26c4d6d3eb073d9870168c5 (patch)
treeae90a8964542d91fd2412c4c48dd9b28f556c2ba /tests.el
parented39aa60f9feca9cbfba29cdd3bb606f02639c7a (diff)
Fix circular initialization dependency
stack-filter needs stack-core to compile the filter, but stack-core uses the default filter to make a request. Note that setting `stack-core-filter' to `nil' still gives proper behaviour; no `filter' argument is passed through the method call.
Diffstat (limited to 'tests.el')
-rw-r--r--tests.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests.el b/tests.el
index 57cd42b..b1aa3c2 100644
--- a/tests.el
+++ b/tests.el
@@ -1,6 +1,16 @@
;;; Tests
+(add-to-list 'load-path ".")
+(require 'stack-core)
+
(setq *t (stack-core-make-request "questions"))
(prog1 t (prin1 (elt (stack-core-parse-questions *t) 0)
#'insert))
+
+(defun -stack--nuke ()
+ (interactive)
+ (mapatoms
+ (lambda (symbol)
+ (if (string-prefix-p "stack-" (symbol-name symbol))
+ (unintern symbol)))))