X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fsearch-insufficient-from-quoting;h=e83ea3d190848831d63ae1aef246ed4a7f2c78e3;hp=6c858a887c63028d5fe1263b86213def2ed92132;hb=84719b08f757a6079f4c3331d0c476d19b265948;hpb=42b0409f8e27a3e9008b5735f397e67152893cfa diff --git a/test/search-insufficient-from-quoting b/test/search-insufficient-from-quoting index 6c858a88..e83ea3d1 100755 --- a/test/search-insufficient-from-quoting +++ b/test/search-insufficient-from-quoting @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash test_description='messages with unquoted . in name' . ./test-lib.sh @@ -21,22 +21,22 @@ add_message \ test_begin_subtest "Search by first name" output=$(notmuch search from:Some.Name | notmuch_search_sanitize) -test_expect_equal_failure "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)" test_begin_subtest "Search by last name:" output=$(notmuch search from:Someone | notmuch_search_sanitize) -test_expect_equal_failure "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)" test_begin_subtest "Search by address:" output=$(notmuch search from:bugs@quoting.com | notmuch_search_sanitize) -test_expect_equal_failure "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread)" test_begin_subtest "Search for all messages:" output=$(notmuch search '*' | notmuch_search_sanitize) -test_expect_equal_failure "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) +test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message needs more quoting on the From line (inbox unread) thread:XXX 2001-01-05 [1/1] Some.Name for Someone; This message has necessary quoting in place (inbox unread) thread:XXX 2001-01-05 [1/1] No.match Here; This message needs more quoting on the From line (inbox unread) thread:XXX 2001-01-05 [1/1] No.match Here; This message has necessary quoting in place (inbox unread)"