From unknown Sun Jun 22 17:10:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37432 <37432@debbugs.gnu.org> To: bug#37432 <37432@debbugs.gnu.org> Subject: Status: 27.0.50; Add test suite for backquote.el Reply-To: bug#37432 <37432@debbugs.gnu.org> Date: Mon, 23 Jun 2025 00:10:17 +0000 retitle 37432 27.0.50; Add test suite for backquote.el reassign 37432 emacs submitter 37432 Tino Calancha severity 37432 normal tag 37432 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 16:50:20 2019 Received: (at submit) by debbugs.gnu.org; 16 Sep 2019 20:50:20 +0000 Received: from localhost ([127.0.0.1]:51156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9xwx-0000mW-Mj for submit@debbugs.gnu.org; Mon, 16 Sep 2019 16:50:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:45357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9xww-0000mP-68 for submit@debbugs.gnu.org; Mon, 16 Sep 2019 16:50:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55984) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9xwu-0007di-5e for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 16:50:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM, SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9xws-0002i3-GQ for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 16:50:15 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:44523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9xws-0002h0-5e for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2019 16:50:14 -0400 Received: by mail-wr1-x42c.google.com with SMTP id i18so797941wru.11 for ; Mon, 16 Sep 2019 13:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=9Ct6zlI3RSDzUXBEzVOGoz6UksTpr3FoeLjtob8jYyY=; b=NQVEiLd8gCINU+l6PZcCMJ4fVrOlpayMo+/J9C7CnbQchgedTJVFFuqrZgdZe5xrUq 3bPy9oK0XZ8l1yqLnluSLklBidGJqvo8cq05vmfj5qJzVAw2YMMNyI65ayX7OKV7imqR fg9fF5QCMdR9QlgALs+WyLbwOAmwMhXVlwTFA0iZb7c413klRbyA7ywzsSGshNOf5zny m3m7rkKMzx33oV1JNMHqgBLJ+U6058CjFLHfEfidlYNTFZSi0Nc/YRJCtjGs58a8bMS+ JrrpKPYRIesKFUFKHUTPBYZyirO8AOt0DyZfT5fjSDGpvwwhIUu64fiuiNqEQeiN0NH4 ZGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=9Ct6zlI3RSDzUXBEzVOGoz6UksTpr3FoeLjtob8jYyY=; b=etvwhStRR1xeJjX7xG9ne7FPUU+NuCsjQv83YDxzOzt+wjZZPunCi5nDRiLUTY6CWI AOs1Pm0uEy+Xqx8TQDNDfnBY+zQD0hm4UOfkm+nqhahv5zRCj/g8BAiERLfKEJ1H0qE3 c5tA1RRJ0ravBP0OcQXzsg/NyHu++CN16i496VXjjAWG3ZLPiF3p2yR7uXhbYg7qrase 4PiNlO+Mz/euZI9pBDVJdE3ZXJW/z3N8ghOv2UYICmW99NMJ/uKjlwMHTcbAYAZtGAE8 21cReL+yPOaxA+fN3nZAuYjqpCxJW51WHe9ghrIfPfgEeJJSfYeAo3mPeK7pEco1xzjm ZZSA== X-Gm-Message-State: APjAAAUnD0vc+jwsrERBnPpRncG6QQi3klH6vDjvOjZC9/qZyLttZ7Lq 4B3o5dkVbH901rGWK1Fym9uC1Gn8zJUWoQ== X-Google-Smtp-Source: APXvYqyLHRbLEAaOwZT5VGrArrtTVWv86Ds6mvMTHPzfDStlteD3Y9WN/CLQxAjtDqTfUocBMy4/nQ== X-Received: by 2002:adf:fe0f:: with SMTP id n15mr191067wrr.343.1568667011572; Mon, 16 Sep 2019 13:50:11 -0700 (PDT) Received: from calancha-pc.dy.bbexcite.jp ([2a02:8308:70c5:4d00:a2fc:1435:82df:8682]) by smtp.gmail.com with ESMTPSA id g11sm178520wmh.45.2019.09.16.13.50.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 13:50:11 -0700 (PDT) From: Tino Calancha To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Add test suite for backquote.el Date: Mon, 16 Sep 2019 22:50:06 +0200 Message-ID: <87k1a80xvl.fsf@calancha-pc.dy.bbexcite.jp> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42c X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Tags: patch --8<-----------------------------cut here---------------start------------->8--- commit d9c55842bf145e219e881080c87a42fc3ea82099 Author: Tino Calancha Date: Mon Sep 16 22:40:20 2019 +0200 Add test suite for backquote.el * test/lisp/emacs-lisp/backquote-tests.el: New file. diff --git a/test/lisp/emacs-lisp/backquote-tests.el b/test/lisp/emacs-lisp/backquote-tests.el new file mode 100644 index 0000000000..8e35cc201b --- /dev/null +++ b/test/lisp/emacs-lisp/backquote-tests.el @@ -0,0 +1,48 @@ +;;; backquote-tests.el --- Tests for backquote.el -*- lexical-binding: t -*- + +;; Copyright (C) 2019 Free Software Foundation, Inc. + +;; This file is part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see . + +;;; Commentary: + +;;; Code: + +(require 'ert) + +(ert-deftest backquote-test-basic () + (let ((lst '(ba bb bc)) + (vec [ba bb bc])) + (should (equal 3 `,(eval '(+ x y) '((x . 1) (y . 2))))) + (should (equal vec `[,@lst])) + (should (equal `(a lst c) '(a lst c))) + (should (equal `(a ,lst c) '(a (ba bb bc) c))) + (should (equal `(a ,@lst c) '(a ba bb bc c))) + ;; Vectors work just like lists. + (should (equal `(a vec c) '(a vec c))) + (should (equal `(a ,vec c) '(a [ba bb bc] c))) + (should (equal `(a ,@vec c) '(a ba bb bc c))))) + +(ert-deftest backquote-test-nested () + "Test nested backquotes." + (let ((lst '(ba bb bc)) + (vec [ba bb bc])) + (should (equal `(a ,`(,@lst) c) `(a ,lst c))) + (should (equal `(a ,`[,@lst] c) `(a ,vec c))) + (should (equal `(a ,@`[,@lst] c) `(a ,@lst c))))) + + +;;; backquote-tests.el ends here --8<-----------------------------cut here---------------end--------------->8--- In GNU Emacs 27.0.50 (build 23, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-09-16 built Repository revision: 1a84d8fba4b526f7c8f240b8163e66714a41cca6 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux 10 (buster) From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 16:58:00 2019 Received: (at 37432) by debbugs.gnu.org; 16 Sep 2019 20:58:01 +0000 Received: from localhost ([127.0.0.1]:51161 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y4O-00010L-Je for submit@debbugs.gnu.org; Mon, 16 Sep 2019 16:58:00 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y4N-00010B-2E for 37432@debbugs.gnu.org; Mon, 16 Sep 2019 16:57:59 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9y4J-0006LL-99; Mon, 16 Sep 2019 22:57:57 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#37432: 27.0.50; Add test suite for backquote.el References: <87k1a80xvl.fsf@calancha-pc.dy.bbexcite.jp> Date: Mon, 16 Sep 2019 22:57:54 +0200 In-Reply-To: <87k1a80xvl.fsf@calancha-pc.dy.bbexcite.jp> (Tino Calancha's message of "Mon, 16 Sep 2019 22:50:06 +0200") Message-ID: <87pnk0q7ql.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > Add test suite for backquote.el > > * test/lisp/emacs-lisp/backquote-tests.el: New file. Looks good; applied to the trunk. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37432 Cc: 37432@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: > Add test suite for backquote.el > > * test/lisp/emacs-lisp/backquote-tests.el: New file. Looks good; applied to the trunk. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 16:58:06 2019 Received: (at control) by debbugs.gnu.org; 16 Sep 2019 20:58:06 +0000 Received: from localhost ([127.0.0.1]:51165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y4T-00011X-UZ for submit@debbugs.gnu.org; Mon, 16 Sep 2019 16:58:06 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9y4S-00011M-7W for control@debbugs.gnu.org; Mon, 16 Sep 2019 16:58:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9y4P-0006LS-Gd for control@debbugs.gnu.org; Mon, 16 Sep 2019 22:58:03 +0200 Date: Mon, 16 Sep 2019 22:58:01 +0200 Message-Id: <87o8zkq7qe.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37432 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 37432 fixed close 37432 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 37432 fixed close 37432 27.1 quit From unknown Sun Jun 22 17:10:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Oct 2019 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator