diff options
author | Jameson Graef Rollins <jrollins@finestructure.net> | 2011-05-08 14:04:47 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2011-06-01 16:35:11 -0700 |
commit | 7fdeb0fb630da0eac355f3c6538f01dba932c5e6 (patch) | |
tree | 3b0be70cba684633eae9a383a51d29eb94f1ef75 /test/search | |
parent | 7a453716c27f09063e0bda56b9ba1d6b2cdd17b5 (diff) |
test: move utf-8 subject search test from json to search test script
This test doesn't have anything to do with json, and has everything to
do with testing search capability, so I'm not sure why it was in the
wrong place.
Diffstat (limited to 'test/search')
-rwxr-xr-x | test/search | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/search b/test/search index 48358729..e7c8c54b 100755 --- a/test/search +++ b/test/search @@ -24,6 +24,11 @@ add_message [subject]=subjectsearchtest '[date]="Sat, 01 Jan 2000 12:00:00 -0000 output=$(notmuch search subject:subjectsearchtest | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; subjectsearchtest (inbox unread)" +test_begin_subtest "Search by subject (utf-8):" +add_message [subject]=utf8-sübjéct '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' +output=$(notmuch search subject:utf8-sübjéct | notmuch_search_sanitize) +test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-sübjéct (inbox unread)" + test_begin_subtest "Search by id:" add_message '[subject]="search by id"' '[date]="Sat, 01 Jan 2000 12:00:00 -0000"' output=$(notmuch search id:${gen_msg_id} | notmuch_search_sanitize) @@ -101,6 +106,7 @@ thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread) thread:XXX 2000-01-01 [1/1] searchbyfrom; search by from (inbox unread) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; subjectsearchtest (inbox unread) +thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-sübjéct (inbox unread) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by id (inbox unread) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by tag (inbox searchbytag unread) thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by thread (inbox unread) |