mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Fix cl-lib-struct-accessors test again.
* test/automated/cl-lib.el (cl-lib-struct-accessors): Fix test to account for removal of `cl-struct-set-slot-value'. Also, move the defstruct to top level.
This commit is contained in:
parent
66fda7948f
commit
ba9b77fe20
1 changed files with 1 additions and 1 deletions
|
|
@ -201,8 +201,8 @@
|
|||
:b :a :a 42)
|
||||
'(42 :a))))
|
||||
|
||||
(cl-defstruct mystruct (abc :readonly t) def)
|
||||
(ert-deftest cl-lib-struct-accessors ()
|
||||
(cl-defstruct mystruct (abc :readonly t) def)
|
||||
(let ((x (make-mystruct :abc 1 :def 2)))
|
||||
(should (eql (cl-struct-slot-value 'mystruct 'abc x) 1))
|
||||
(should (eql (cl-struct-slot-value 'mystruct 'def x) 2))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue