diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/erc/erc-networks-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lisp/erc/erc-networks-tests.el b/test/lisp/erc/erc-networks-tests.el index e84cca68cdd..02c90f28c6c 100644 --- a/test/lisp/erc/erc-networks-tests.el +++ b/test/lisp/erc/erc-networks-tests.el | |||
| @@ -76,6 +76,14 @@ | |||
| 76 | :symbol 'fake.chat))))) | 76 | :symbol 'fake.chat))))) |
| 77 | (kill-buffer)))) | 77 | (kill-buffer)))) |
| 78 | 78 | ||
| 79 | (ert-deftest erc-networks--id-string () | ||
| 80 | (should (equal (erc-networks--id-string (erc-networks--id-fixed-create 'foo)) | ||
| 81 | "foo")) | ||
| 82 | (should (equal (let* ((erc-network 'FooNet) | ||
| 83 | (erc-server-current-nick "Joe")) ; needs letstar | ||
| 84 | (erc-networks--id-string (erc-networks--id-create nil))) | ||
| 85 | "FooNet"))) | ||
| 86 | |||
| 79 | (ert-deftest erc-networks--id-create () | 87 | (ert-deftest erc-networks--id-create () |
| 80 | (cl-letf (((symbol-function 'float-time) | 88 | (cl-letf (((symbol-function 'float-time) |
| 81 | (lambda (&optional _) 0.0))) | 89 | (lambda (&optional _) 0.0))) |