diff options
author | Sean Allred <allred.sean@gmail.com> | 2014-11-02 09:26:38 -0500 |
---|---|---|
committer | Sean Allred <allred.sean@gmail.com> | 2014-11-02 09:26:38 -0500 |
commit | 6766f1175ac3fad1a2928ff1f798e9c11caf465d (patch) | |
tree | 4377a39ec2cd28162cbd3db9ce6cd5bb515783b7 /tests.el | |
parent | 796937d412f79c5caf964cc26f81f60e130d035e (diff) | |
parent | 39ec0ba8a34b3764fcf46f0e5deb1133b0e70e2c (diff) |
Merge pull request #5 from vermiculus/convenience-functions
Add a convenience function to sort through large data structures. Also move tests to test/ and add sample data for real use-case tests later.
Diffstat (limited to 'tests.el')
-rw-r--r-- | tests.el | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests.el b/tests.el deleted file mode 100644 index 379c903..0000000 --- a/tests.el +++ /dev/null @@ -1,29 +0,0 @@ -(defun -stack--nuke () - (interactive) - (mapatoms - (lambda (symbol) - (if (string-prefix-p "stack-" (symbol-name symbol)) - (unintern symbol))))) - -;;; Tests - -(setq stack-core-remaining-api-requests-message-threshold 1000000000) -(setq debug-on-error t) - -(require 'stack-core) -(require 'stack-question) - -(setq stack-core-remaining-api-requests-message-threshold 50000) - -(ert-deftest test-basic-request () - "Test basic request functionality" - (should (stack-core-make-request "sites"))) - -(ert-deftest test-question-retrieve () - "Test the ability to receive a list of questions." - (should (stack-question-get-questions 'emacs))) - -(ert-deftest test-bad-request () - "Test a method given a bad set of keywords" - (should-error - (stack-core-make-request "questions" '(())))) |