From a8a8cb9a250e12ec79b24d3f9c46c17f2a4c185e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 7 Oct 2021 19:04:39 -0700 Subject: [PATCH] Remove tests from irc.el A couple thoughts: - Generally, unit tests aren't worth keeping in the same file as the library - Specifically, *these* unit tests aren't worth keeping --- emacs/.emacs.d/wpc/irc.el | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/emacs/.emacs.d/wpc/irc.el b/emacs/.emacs.d/wpc/irc.el index 1a9120456..08e4d1eb1 100644 --- a/emacs/.emacs.d/wpc/irc.el +++ b/emacs/.emacs.d/wpc/irc.el @@ -30,8 +30,6 @@ ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defconst irc-enable-tests? t - "When t, run the tests defined herein.") (setq erc-rename-buffers t) @@ -171,13 +169,5 @@ ;; Tests ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(when irc-enable-tests? - (prelude-assert - (equal - (irc-channel->server `(("irc.dairy.com" . ,(cycle-new "#cheese" "#milk")) - ("irc.color.com" . ,(cycle-new "#red" "#blue"))) - "#cheese") - "irc.dairy.com"))) - (provide 'irc) ;;; irc.el ends here