diff options
| author | Daniel Colascione | 2014-04-20 18:28:55 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-20 18:28:55 -0700 |
| commit | 0c8d94555ce550d87afd6293bf5d17e864c13864 (patch) | |
| tree | 6387e2412a1feee3acb6392ba3b196cc5da90b36 /test | |
| parent | 2fa1b97db098c04810763e742e956c63b9527989 (diff) | |
| download | emacs-0c8d94555ce550d87afd6293bf5d17e864c13864.tar.gz emacs-0c8d94555ce550d87afd6293bf5d17e864c13864.zip | |
Fix cl-the test
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 1 | ||||
| -rw-r--r-- | test/automated/cl-lib.el | 10 |
2 files changed, 6 insertions, 5 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 2e6e1aefeb1..942455ad22b 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | 2014-04-21 Daniel Colascione <dancol@dancol.org> | 1 | 2014-04-21 Daniel Colascione <dancol@dancol.org> |
| 2 | 2 | ||
| 3 | * automated/cl-lib.el (cl-loop-destructuring-with): New test. | 3 | * automated/cl-lib.el (cl-loop-destructuring-with): New test. |
| 4 | (cl-the): Fix cl-the test. | ||
| 4 | 5 | ||
| 5 | 2014-04-20 Daniel Colascione <dancol@dancol.org> | 6 | 2014-04-20 Daniel Colascione <dancol@dancol.org> |
| 6 | 7 | ||
diff --git a/test/automated/cl-lib.el b/test/automated/cl-lib.el index 2c73c82ba98..8bf1482a30a 100644 --- a/test/automated/cl-lib.el +++ b/test/automated/cl-lib.el | |||
| @@ -214,11 +214,11 @@ | |||
| 214 | '((cl-tag-slot) (abc :readonly t) (def)))))) | 214 | '((cl-tag-slot) (abc :readonly t) (def)))))) |
| 215 | 215 | ||
| 216 | (ert-deftest cl-the () | 216 | (ert-deftest cl-the () |
| 217 | (should (eql (the integer 42) 42)) | 217 | (should (eql (cl-the integer 42) 42)) |
| 218 | (should-error (the integer "abc")) | 218 | (should-error (cl-the integer "abc")) |
| 219 | (let ((sideffect 0)) | 219 | (let ((side-effect 0)) |
| 220 | (should (= (the integer (incf sideffect)) 1)) | 220 | (should (= (cl-the integer (cl-incf side-effect)) 1)) |
| 221 | (should (= sideffect 1)))) | 221 | (should (= side-effect 1)))) |
| 222 | 222 | ||
| 223 | (ert-deftest cl-loop-destructuring-with () | 223 | (ert-deftest cl-loop-destructuring-with () |
| 224 | (should (equal (cl-loop with (a b c) = '(1 2 3) return (+ a b c)) 6))) | 224 | (should (equal (cl-loop with (a b c) = '(1 2 3) return (+ a b c)) 6))) |