all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "andrés ramírez" <rrandresf@gmail.com>,
	emacs-devel <emacs-devel@gnu.org>
Subject: RE: SES case insensitive ses-jump git-pushed
Date: Tue, 5 Apr 2022 11:53:23 +0000	[thread overview]
Message-ID: <AS8P193MB2367EDBB00D842C9EB8FEC1D84E49@AS8P193MB2367.EURP193.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <AS8P193MB2367BDD9CE9E5C4887E4A14384E49@AS8P193MB2367.EURP193.PROD.OUTLOOK.COM>

[-- Attachment #1: Type: text/plain, Size: 3395 bytes --]

The problem might be due to this that I have several (defvar …) in the
ses-test.el, I probably added this in order to avoid some bytecompile
errors, plus somebody has added the cookie -*- lexical-binding: t; -*-
to the ses-test.el file.

SES uses buffer local variables for the cell symbols, so the interned
symbols referring to cells are per se dynamically / not lexically,
bound.

I suspect that the addition of the -*- lexical-binding: t; -*- cookies is
the root cause of the test being erroneous. If we need that cooky, then
I need another way to declare the cell symbols, maybe declaring them in
an encapsulating (let (…) …) statement and removing the (defvar …) would
solve the issue.

  V.
________________________________
De : Vincent Belaïche <vincent.b.1@hotmail.fr>
Envoyé : mardi 5 avril 2022 13:46
À : Stefan Monnier <monnier@iro.umontreal.ca>
Cc : emacs-devel <emacs-devel@gnu.org>; andrés ramírez <rrandresf@gmail.com>
Objet : RE: SES case insensitive ses-jump git-pushed

To be fully honest, if I M-x ert-run-tests-interactively a second time,
then I get this:

--------8<-----------8<-----------8<-----------8<-----------8<-------
Selector: t
Passed:  11
Failed:  2 (2 unexpected)
Skipped: 0
Total:   13/13

Started at:   2022-04-05 13:44:31+0200
Finished.
Finished at:  2022-04-05 13:44:31+0200

..........FF.

F ses-tests-renamed-cell-after-setting
    Check that setting A1 to 1 and A2 to (1+ A1), and then
    (ert-test-failed
     ((should
       (eq
(bound-and-true-p A2)
2))
      :form
      (eq *error* 2)
      :value nil))

F ses-tests-renamed-cells-row-insertion
    Check that setting A1 to 1 and A2 to (1+ A1), and then renaming A1 to ‘ses--foo’ and A2 to ‘ses--bar’ jumping
    (ert-test-failed
     ((should
       (eq ses--bar 2))
      :form
      (eq *error* 2)
      :value nil))
--------8<-----------8<-----------8<-----------8<-----------8<-------

It seems that the new tests are maybe not to blame, but that my existing
tests were wrong, as if there is some border effect remaining after the
tests have run, and spoiling a new test run.

  V.
________________________________
De : Vincent Belaïche <vincent.b.1@hotmail.fr>
Envoyé : mardi 5 avril 2022 13:43
À : Stefan Monnier <monnier@iro.umontreal.ca>
Cc : emacs-devel <emacs-devel@gnu.org>; andrés ramírez <rrandresf@gmail.com>
Objet : RE: SES case insensitive ses-jump git-pushed

Salut Stefan,

When I eval-buffer on ses-test.el, and then when I do M-x
ert-run-tests-interactively I get no error, the output in *ert* buffer
is as follows:

--------8<-----------8<-----------8<-----------8<-----------8<-------
Selector: t
Passed:  13
Failed:  0
Skipped: 0
Total:   13/13

Started at:   2022-04-05 13:41:09+0200
Finished.
Finished at:  2022-04-05 13:41:09+0200

.............
--------8<-----------8<-----------8<-----------8<-----------8<-------

  V.
________________________________
De : andrés ramírez <rrandresf@gmail.com>
Envoyé : mardi 5 avril 2022 05:33
À : Stefan Monnier <monnier@iro.umontreal.ca>
Cc : Vincent Belaïche <vincent.b.1@hotmail.fr>; emacs-devel <emacs-devel@gnu.org>
Objet : Re: SES case insensitive ses-jump git-pushed

>>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:


[...]


    Stefan> I also see an error when I run `make test/lisp/ses-tests`.


[-- Attachment #2: Type: text/html, Size: 6733 bytes --]

  reply	other threads:[~2022-04-05 11:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-04 17:49 SES case insensitive ses-jump git-pushed Vincent Belaïche
2022-04-04 19:20 ` Stefan Monnier
2022-04-05  3:33   ` andrés ramírez
2022-04-05 11:43     ` Vincent Belaïche
2022-04-05 11:46       ` Vincent Belaïche
2022-04-05 11:53         ` Vincent Belaïche [this message]
2022-04-06 21:07     ` Vincent Belaïche

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=AS8P193MB2367EDBB00D842C9EB8FEC1D84E49@AS8P193MB2367.EURP193.PROD.OUTLOOK.COM \
    --to=vincent.b.1@hotmail.fr \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rrandresf@gmail.com \
    /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.