diff options
author | Sean Allred <code@seanallred.com> | 2015-01-01 12:05:04 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-01 12:05:04 -0500 |
commit | 7217c37a3619c72bce6ac5be97b969a0bb2f03cc (patch) | |
tree | 2122e7af13722a8bdf71e396774309c4e84ad78c /test/test-api.el | |
parent | 9650a1541b43da18067466df7671d23d5baffeed (diff) |
Split tests into separate files
Diffstat (limited to 'test/test-api.el')
-rw-r--r-- | test/test-api.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test-api.el b/test/test-api.el new file mode 100644 index 0000000..ca775ff --- /dev/null +++ b/test/test-api.el @@ -0,0 +1,13 @@ +(ert-deftest test-basic-request () + "Test basic request functionality" + (should (sx-request-make "sites"))) + +(ert-deftest test-question-retrieve () + "Test the ability to receive a list of questions." + (should (sx-question-get-questions 'emacs))) + +(ert-deftest test-bad-request () + "Test a method given a bad set of keywords" + (should-error + (sx-request-make "questions" '(())))) + |