From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Re: call for more ert tests Date: Mon, 24 Jun 2013 14:59:28 -0500 Organization: New Artisans LLC Message-ID: References: <838v1zjrnl.fsf@gnu.org> <8361x3jqsy.fsf@gnu.org> <8338s7jp53.fsf@gnu.org> <87bo6vb8uo.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372103983 7805 80.91.229.3 (24 Jun 2013 19:59:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Jun 2013 19:59:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 24 21:59:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UrCvN-00021y-Qb for ged-emacs-devel@m.gmane.org; Mon, 24 Jun 2013 21:59:41 +0200 Original-Received: from localhost ([::1]:58570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCvN-0005J4-HW for ged-emacs-devel@m.gmane.org; Mon, 24 Jun 2013 15:59:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCvI-0005Fp-Sa for emacs-devel@gnu.org; Mon, 24 Jun 2013 15:59:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrCvG-00071b-8V for emacs-devel@gnu.org; Mon, 24 Jun 2013 15:59:36 -0400 Original-Received: from mail-ie0-x235.google.com ([2607:f8b0:4001:c03::235]:44039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrCvG-00071D-3s for emacs-devel@gnu.org; Mon, 24 Jun 2013 15:59:34 -0400 Original-Received: by mail-ie0-f181.google.com with SMTP id x12so26035036ief.12 for ; Mon, 24 Jun 2013 12:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:organization:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=pNVuZogkedumY2Hon2N+inJ3Ab8zj8/RlgWZ+DjOjL8=; b=yNBVc9K7ttSQdB+pMSntKOwc9u6hsaxa3x2TtfhWj5GJi18F90Pz/j58y7dSjEIFsb v2tBPHng0u1ML6hcBLF0DRlmeI9vvG5kgZlRAOP/A0Pf1JlFRMPq9Q3y0RmzBNt7VBTh S3Y+G0dX4whEn09/0PaX30EpoficrLIjTOLNoOPJfvsy4XQDA96eGtWj2pLqgAT6I363 5waGDhbwpIVr36LGUXuokVYHKlYobH8gkdjTsQIPAdomGjwCMsL2hUqyO0ISfBvPj0qb QEAU8yolRdJ5MLNbXBOFFGZyE4fSVkCE4dELQAwXLOkJtrUtMSZY23HmAkix4ODPUTe8 lzHQ== X-Received: by 10.50.154.106 with SMTP id vn10mr6773549igb.0.1372103972905; Mon, 24 Jun 2013 12:59:32 -0700 (PDT) Original-Received: from Vulcan.local (c-98-214-70-173.hsd1.il.comcast.net. [98.214.70.173]) by mx.google.com with ESMTPSA id x10sm1622844igl.3.2013.06.24.12.59.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 24 Jun 2013 12:59:32 -0700 (PDT) Original-Received: by Vulcan.local (Postfix, from userid 501) id BB98367EF0AE; Mon, 24 Jun 2013 14:59:29 -0500 (CDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87bo6vb8uo.fsf@wanadoo.es> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Mon, 24 Jun 2013 21:35:11 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:160981 Archived-At: >>>>> =C3=93scar Fuentes writes: > I wonder about the possibility of making Emacs testing an "interesting" > task. Something like a test framework which is complete and expressive > enough to allow describing testable conditions on a very high level way. One thing that would help with that is to allow structural pattern matching. For example, say I have a function `foo` which returns a list '(a b c), but all I care about is that `b` is `b`. Then I could write: (shouldBe (foo) '(_ b _)) `shouldBe` then raises an exception if the pattern fails to match. John