emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 05/119: stub out (but don't write any) tests


From: Eric Schulte
Subject: [elpa] 05/119: stub out (but don't write any) tests
Date: Mon, 10 Mar 2014 16:56:56 +0000

eschulte pushed a commit to branch master
in repository elpa.

commit fe0afb6103d68f1a27cad6aad78ecf2b2c6d04fe
Author: Eric Schulte <address@hidden>
Date:   Wed Dec 18 00:21:38 2013 -0700

    stub out (but don't write any) tests
---
 emacs-web-server-test.el |   31 +++++++++++++++++++++++++++++++
 emacs-web-server.el      |    2 +-
 2 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/emacs-web-server-test.el b/emacs-web-server-test.el
new file mode 100644
index 0000000..1e5e718
--- /dev/null
+++ b/emacs-web-server-test.el
@@ -0,0 +1,31 @@
+;;; emacs-web-server-test.el --- Test the Emacs Web Server
+
+;; Copyright (C) 2013 Eric Schulte <address@hidden>
+
+;; Author: Eric Schulte <address@hidden>
+;; License: GPLV3 (see the COPYING file in this directory)
+
+;;; TODO: fill in these tests, and then write more
+
+;;; Code:
+(require 'emacs-web-server)
+(require 'ert)
+
+(ert-deftest ews/keyword-style-handler ()
+  "Ensure that a simple keyword-style handler matches correctly."
+  (should t)                            ; should match one
+  (should-not nil)                      ; should not match another
+  )
+
+(ert-deftest ews/function-style-handler ()
+  "Ensure that a function-style handler matches correctly."
+  (should t)                            ; should match one
+  (should-not nil)                      ; should not match another
+  )
+
+(ert-deftest ews/removed-from-ews-servers-after-stop ()
+  (should t))
+
+(ert-deftest ews/parse-many-headers ()
+  "Test that a number of headers parse successfully."
+  (should t))
diff --git a/emacs-web-server.el b/emacs-web-server.el
index ef22032..8e69ec6 100644
--- a/emacs-web-server.el
+++ b/emacs-web-server.el
@@ -3,7 +3,7 @@
 ;; Copyright (C) 2013 Eric Schulte <address@hidden>
 
 ;; Author: Eric Schulte <address@hidden>
-;; Keywords: elnode html sprunge paste
+;; Keywords: http
 ;; License: GPLV3 (see the COPYING file in this directory)
 
 ;;; Code:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]