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 64875431FB5 for ; Mon, 29 Nov 2010 02:30:43 -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=[RCVD_IN_DNSWL_NONE=-0.0001] 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 N6BYj14OunQ6 for ; Mon, 29 Nov 2010 02:30:42 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) by olra.theworths.org (Postfix) with ESMTP id 4F532431FB6 for ; Mon, 29 Nov 2010 02:30:42 -0800 (PST) Received: by wwi17 with SMTP id 17so52762wwi.2 for ; Mon, 29 Nov 2010 02:30:41 -0800 (PST) Received: by 10.216.52.199 with SMTP id e49mr4498460wec.63.1291026641399; Mon, 29 Nov 2010 02:30:41 -0800 (PST) Received: from ut.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com [81.149.164.25]) by mx.google.com with ESMTPS id w29sm2293644weq.19.2010.11.29.02.30.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 29 Nov 2010 02:30:40 -0800 (PST) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 35A0D594241; Mon, 29 Nov 2010 10:30:07 +0000 (GMT) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH 2/3] test: Expect `date_relative' in JSON search output. Date: Mon, 29 Nov 2010 10:29:58 +0000 Message-Id: <1291026599-14795-3-git-send-email-dme@dme.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1291026599-14795-1-git-send-email-dme@dme.org> References: <1291026599-14795-1-git-send-email-dme@dme.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Mon, 29 Nov 2010 10:30:43 -0000 --- test/json | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/json b/test/json index 7fe2a27..c0ff22d 100755 --- a/test/json +++ b/test/json @@ -12,6 +12,7 @@ add_message "[subject]=\"json-search-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00 output=$(notmuch search --format=json "json-search-message" | notmuch_search_sanitize) test_expect_equal "$output" "[{\"thread\": \"XXX\", \"timestamp\": 946728000, +\"date_relative\": \"2000-01-01\", \"matched\": 1, \"total\": 1, \"authors\": \"Notmuch Test Suite\", @@ -33,6 +34,7 @@ add_message "[subject]=\"json-search-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Ja output=$(notmuch search --format=json "jsön-search-méssage" | notmuch_search_sanitize) test_expect_equal "$output" "[{\"thread\": \"XXX\", \"timestamp\": 946728000, +\"date_relative\": \"2000-01-01\", \"matched\": 1, \"total\": 1, \"authors\": \"Notmuch Test Suite\", -- 1.7.2.3