Re: [PATCH] test: make test_expect_equal_file() arguments flexible
[notmuch-archives.git] / 2b / fcedbe31dca4e6c63c5613e9a77072d8ca9561
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 5BBFD431FAF\r
6         for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 07:25:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id jPHip1a7hKFs for <notmuch@notmuchmail.org>;\r
16         Thu,  2 Feb 2012 07:25:16 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id C37E9431FAE\r
19         for <notmuch@notmuchmail.org>; Thu,  2 Feb 2012 07:25:16 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 9D5D768055; Thu,  2 Feb 2012 17:25:19 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: David Edmondson <dme@dme.org>,\r
24         Jameson Graef Rollins <jrollins@finestructure.net>,\r
25         Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
26 Subject: Re: [PATCH] test: make test_expect_equal_file() arguments flexible\r
27 In-Reply-To: <cuny5sl5mp7.fsf@hotblack-desiato.hh.sledj.net>\r
28 References: <1328080794-24670-1-git-send-email-dmitry.kurochkin@gmail.com>\r
29         <87r4yfszx9.fsf@servo.finestructure.net>\r
30         <87pqdync64.fsf@gmail.com> <m262fqc0wv.fsf@guru.guru-group.fi>\r
31         <87k446n8ji.fsf@gmail.com> <87ehuetqjz.fsf@servo.finestructure.net>\r
32         <cuny5sl5mp7.fsf@hotblack-desiato.hh.sledj.net>\r
33 User-Agent: Notmuch/0.11+146~geb6dc33 (http://notmuchmail.org) Emacs/23.3.1\r
34         (x86_64-unknown-linux-gnu)\r
35 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
36         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
37         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
38 Date: Thu, 02 Feb 2012 17:25:19 +0200\r
39 Message-ID: <m2d39xb6lc.fsf@guru.guru-group.fi>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain; charset=us-ascii\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Thu, 02 Feb 2012 15:25:17 -0000\r
55 \r
56 On Thu, 02 Feb 2012 14:33:56 +0000, David Edmondson <dme@dme.org> wrote:\r
57 > On Wed, 01 Feb 2012 09:24:32 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:\r
58 > > If this is really a problem, I vote for 1.  In general, I am not in\r
59 > > favor of making the test suite more complicated than it needs to be.\r
60\r
61 > After listening to the debate, I agree. The documentation should state\r
62 > that the order is 'expected actual' (or the other way around) and\r
63 > offenders should be shot on sight^W^W^Wfixed.\r
64 \r
65 I've started to agree with Dmitry.\r
66 \r
67 Why do something that computer can do -- to guide test writers to\r
68 give args in consistent order and provide suitable filenames.\r
69 \r
70 Secondly as the output files are provided for human consumption\r
71 if there is consistent naming in expected output files helps \r
72 developers getting parts of the big picture easier and finding \r
73 right filenames easier.\r
74 \r
75 ... and the reviewers doesn't need to keep their plasma guns\r
76 handly.\r
77 \r
78 Tomi\r
79 \r