From 6ad416ae9c0ca1e1208f5a9ffa3c4b591c887eaa Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Wed, 6 Mar 2013 10:34:12 +0200 Subject: [PATCH] Re: [PATCH] test/README: mention the test_expect_equal_json and *sanitize* functions --- 73/3f70146125470be3cdd8e100e62685411f10ce | 112 ++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 73/3f70146125470be3cdd8e100e62685411f10ce diff --git a/73/3f70146125470be3cdd8e100e62685411f10ce b/73/3f70146125470be3cdd8e100e62685411f10ce new file mode 100644 index 000000000..7c6e7ccc0 --- /dev/null +++ b/73/3f70146125470be3cdd8e100e62685411f10ce @@ -0,0 +1,112 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0A225431FAF + for ; Wed, 6 Mar 2013 00:34:26 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id U8XTb+B4e6pC for ; + Wed, 6 Mar 2013 00:34:25 -0800 (PST) +Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) + by olra.theworths.org (Postfix) with ESMTP id 09D70431FAE + for ; Wed, 6 Mar 2013 00:34:25 -0800 (PST) +Received: from guru.guru-group.fi (localhost [IPv6:::1]) + by guru.guru-group.fi (Postfix) with ESMTP id AF8D2100051; + Wed, 6 Mar 2013 10:34:12 +0200 (EET) +From: Tomi Ollila +To: Aaron Ecay , notmuch@notmuchmail.org +Subject: Re: [PATCH] test/README: mention the test_expect_equal_json and + *sanitize* functions +In-Reply-To: <1362540882-1894-1-git-send-email-aaronecay@gmail.com> +References: <1362540882-1894-1-git-send-email-aaronecay@gmail.com> +User-Agent: Notmuch/0.15.2+48~g8dcc33e (http://notmuchmail.org) Emacs/24.2.1 + (x86_64-unknown-linux-gnu) +X-Face: HhBM'cA~ +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 06 Mar 2013 08:34:26 -0000 + +On Wed, Mar 06 2013, Aaron Ecay wrote: + +> also fix one typo +> --- + +LGTM. + +Tomi + + +> test/README | 22 +++++++++++++++++++++- +> 1 file changed, 21 insertions(+), 1 deletion(-) +> +> diff --git a/test/README b/test/README +> index 81c232d..d12cff2 100644 +> --- a/test/README +> +++ b/test/README +> @@ -178,11 +178,18 @@ library for your script to use. +> +> test_expect_equal_file +> +> - Identical to test_exepect_equal, except that and +> + Identical to test_expect_equal, except that and +> are files instead of strings. This is a much more robust method to +> compare formatted textual information, since it also notices +> whitespace and closing newline differences. +> +> + test_expect_equal_json +> + +> + Identical to test_expect_equal, except that the two strings are +> + treated as JSON and canonicalized before equality testing. This is +> + useful to abstract away from whitespace differences in the expected +> + output and that generated by running a notmuch command. +> + +> test_debug