mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-29 07:58:28 +00:00
Fix some errors in recently added tests
* test/automated/generator-tests.el (cps-while-incf): Replace undefined incf with cl-incf. (cps-test-iter-do): Use should not undefined assert.
This commit is contained in:
parent
a0b78cb64f
commit
27c02b02fe
@ -1,3 +1,9 @@
|
||||
2015-03-03 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* automated/generator-tests.el (cps-while-incf):
|
||||
Replace undefined incf with cl-incf.
|
||||
(cps-test-iter-do): Use should not undefined assert.
|
||||
|
||||
2015-03-03 Daniel Colascione <dancol@dancol.org>
|
||||
|
||||
* automated/finalizer-tests.el (finalizer-object-type): Test that
|
||||
|
@ -109,7 +109,7 @@ identical output.
|
||||
(cps-testcase cps-while-incf
|
||||
(let* ((i 0) (j 10))
|
||||
(while (< i 10)
|
||||
(incf i)
|
||||
(cl-incf i)
|
||||
(setf j (+ j (* i 10))))
|
||||
j))
|
||||
|
||||
@ -202,8 +202,7 @@ identical output.
|
||||
(let (mylist)
|
||||
(iter-do (x (mygenerator 4))
|
||||
(push x mylist))
|
||||
|
||||
(assert (equal mylist '(2 4 1)))))
|
||||
(should (equal mylist '(2 4 1)))))
|
||||
|
||||
(iter-defun gen-using-yield-value ()
|
||||
(let (f)
|
||||
|
Loading…
Reference in New Issue
Block a user