From 7a453716c27f09063e0bda56b9ba1d6b2cdd17b5 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Fri, 6 May 2011 11:57:16 -0700 Subject: test: Move a test from search to search-output, and add a similar json test The "Search for non-existent message prints nothing" test fits better with the existing tests in search-output, so move it there. Also add a similar test for the --format=json case. These tests also use the new test_expect_equal_file function, (to ensure that the presence of a trailing newline is correctly tested). --- test/search | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test/search') diff --git a/test/search b/test/search index 0981f66..4835872 100755 --- a/test/search +++ b/test/search @@ -118,9 +118,4 @@ add_message '[subject]="utf8-message-body-subject"' '[date]="Sat, 01 Jan 2000 12 output=$(notmuch search "bödý" | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-message-body-subject (inbox unread)" -test_expect_success "Search for non-existent message prints nothing" ' -echo -n > expected && -notmuch search "no-message-matches-this" > actual && -test_cmp expected actual' - test_done -- cgit v1.2.3