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
This commit is contained in:
William Carroll 2021-10-07 19:04:39 -07:00
parent 18bfbca380
commit a8a8cb9a25

View file

@ -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