From a5d8a8e409c7ccaa92ed313ce9d1c8f27ebab1c3 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Sat, 1 Nov 2014 13:07:11 -0400 Subject: Move tests and sample data to test/ --- test/util.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/util.el (limited to 'test/util.el') diff --git a/test/util.el b/test/util.el new file mode 100644 index 0000000..7d5937f --- /dev/null +++ b/test/util.el @@ -0,0 +1,12 @@ +(defmacro stack-test-get-sample-data (method &optional directory) + (with-current-buffer + (find-file-noselect + (concat "data-samples/" + (when directory (concat directory "/")) + method ".el")) + (eval (read (buffer-string))))) + +(setq stack-test-data-questions + (stack-test-get-sample-data "questions") + stack-test-data-sites + (stack-test-get-sample-data "sites")) -- cgit v1.2.3