]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cl-lib-struct-accessors test again.
authorDaniel Colascione <dancol@dancol.org>
Tue, 22 Apr 2014 06:45:41 +0000 (23:45 -0700)
committerDaniel Colascione <dancol@dancol.org>
Tue, 22 Apr 2014 06:45:41 +0000 (23:45 -0700)
* 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.

test/automated/cl-lib.el

index 89bc3cea39260ad93952f00b057fc290880665df..48a4c5da2512ac3d94abb33fb069e11b741581bb 100644 (file)
                     :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))