aboutsummaryrefslogtreecommitdiffstats
path: root/test/automated
diff options
context:
space:
mode:
authorDaniel Colascione <[email protected]>2014-04-21 23:45:41 -0700
committerDaniel Colascione <[email protected]>2014-04-21 23:45:41 -0700
commitba9b77fe2049846c50cd09285c7b201412072f0d (patch)
tree9c306d9547f5d75745ca5b39122a9dd033a86914 /test/automated
parent66fda7948f7d0b94194d53edcfbf27bec596c019 (diff)
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.
Diffstat (limited to 'test/automated')
-rw-r--r--test/automated/cl-lib.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/automated/cl-lib.el b/test/automated/cl-lib.el
index 89bc3cea39..48a4c5da25 100644
--- a/test/automated/cl-lib.el
+++ b/test/automated/cl-lib.el
@@ -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))