[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40562: [patch] Treat records as arrays in ert object comparisons and
From: |
Clément Pit-Claudel |
Subject: |
bug#40562: [patch] Treat records as arrays in ert object comparisons and add support for cl-structs |
Date: |
Sat, 11 Apr 2020 23:06:47 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 11/04/2020 19.26, Štěpán Němec wrote:
> This is incorrect, as witnessed by your very example (`c' instead of
> `b'). Records are accessible with `aref', but the first slot is the type
> descriptor, so you're making an off-by-one error here.
Of course, it should be `for slot in (cl-struct-slot-info (type-of a))` not
`for slot in (cdr (cl-struct-slot-info (type-of a)))`. Updated patch attached.
Thanks for the review!
0002-lisp-emacs-lisp-ert.el-ert-explain-equal-rec-Add-sup.patch
Description: Text Data