Commit 27c02b02 authored by Glenn Morris's avatar Glenn Morris
Browse files

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.
parent a0b78cb6
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment