diff options
author | Sean Allred <code@seanallred.com> | 2014-11-01 13:07:11 -0400 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-11-01 13:07:11 -0400 |
commit | a5d8a8e409c7ccaa92ed313ce9d1c8f27ebab1c3 (patch) | |
tree | 310014aa6bf110a5e58b423d1c77a70f0e80e03d /test/util.el | |
parent | a8e1a143701326da47f973d3ad6062919e614e31 (diff) |
Move tests and sample data to test/
Diffstat (limited to 'test/util.el')
-rw-r--r-- | test/util.el | 12 |
1 files changed, 12 insertions, 0 deletions
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")) |