From: Anders Lindgren <andlind@gmail.com>
To: 21701@debbugs.gnu.org
Subject: bug#21701: 25.0.50; ert explainer for equal can't handle negative numbers (work in 24.5)
Date: Sun, 18 Oct 2015 10:56:58 +0200 [thread overview]
Message-ID: <CABr8ebZw=RZHwGidLNOXUzJ5T7vwiV_1dDoXCL1_t8duEaY7uA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3695 bytes --]
Steps to repeat, eval the following and run `ert'.
(ert-deftest bad-equal ()
(should (equal 23 -50)))
Instead of a normal Ert error, the following is reported:
A bad-equal
aborted
When placing the cursor on the error and press "d" (to run the test case in
the debugger), the following call stack is presented:
apply(debug (error (wrong-type-argument characterp -50)))
ert--run-test-debugger([cl-struct-ert--test-execution-info...
#[128 "\301\300\x02\"\207" [[cl-struct-ert--test-execution-info ...
format("?%c" -50)
ert--explain-format-atom(-50)
ert--explain-equal-rec(23 -50)
ert--explain-equal(23 -50)
apply(ert--explain-equal (23 -50))
(list :explanation (apply -explainer- args-1))
Clearly, the code is trying to print -50 as a character.
This worked in Emacs 24.5, where Ert reported:
F bad-equal
(ert-test-failed
((should
(equal 23 -50))
:form
(equal 23 -50)
:value nil :explanation
(different-atoms
(23 "#x17" "?\x17")
(-50 "#x3fffffffffffffce"))))
Sincerely,
Anders Lindgren
In GNU Emacs 25.0.50.158 (x86_64-apple-darwin14.5.0, NS appkit-1348.17
Version 10.10.5 (Build 14F27))
of 2015-10-16
Repository revision: ff4798b8b493ba1ec51dcb1c59a11824865124b8
Windowing system distributor 'Apple', version 10.3.1348
Configured using:
'configure --with-ns --without-dbus'
Configured features:
ACL ZLIB TOOLKIT_SCROLL_BARS NS
Important settings:
value of $LC_CTYPE: UTF-8
locale-coding-system: utf-8-unix
Major mode: ERT-Results
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
bad-equal
Ran 1 tests, 0 results were as expected, 1 unexpected
Running test bad-equal...
Entering debugger...
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message dired format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils pp cl-extra help-mode cl-macs gv
ert find-func ewoc easymenu debug cl-loaddefs pcase cl-lib time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel ns-win term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese charscript case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote cocoa ns multi-tty
make-network-process emacs)
Memory information:
((conses 16 89635 5963)
(symbols 48 19436 0)
(miscs 40 78 159)
(strings 32 15385 4052)
(string-bytes 1 463936)
(vectors 16 12257)
(vector-slots 8 415700 5035)
(floats 8 162 183)
(intervals 56 271 6)
(buffers 976 14))
[-- Attachment #2: Type: text/html, Size: 4110 bytes --]
next reply other threads:[~2015-10-18 8:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 8:56 Anders Lindgren [this message]
2015-12-04 9:41 ` bug#21701: cl-typecase broken (was 25.0.50; ert explainer for equal can't handle negative numbers) Anders Lindgren
[not found] ` <CABr8ebZdsbyLDjayLSXRDqhvyGSTngfdLcKruwavYHmG_MPpWA@mail.gmail.com>
2015-12-04 13:30 ` bug#21701: Fwd: " Stefan Monnier
2015-12-04 15:41 ` Anders Lindgren
2015-12-04 17:36 ` Stefan Monnier
2015-12-04 18:17 ` Stefan Monnier
2015-12-04 19:42 ` Anders Lindgren
2015-12-04 21:08 ` Drew Adams
2015-12-04 21:25 ` Stefan Monnier
2015-12-04 21:32 ` Drew Adams
2015-12-04 22:58 ` Glenn Morris
2015-12-05 15:08 ` Anders Lindgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABr8ebZw=RZHwGidLNOXUzJ5T7vwiV_1dDoXCL1_t8duEaY7uA@mail.gmail.com' \
--to=andlind@gmail.com \
--cc=21701@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.