X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Fjson;h=5a2544c243ec06ab3937ab5fe6aae34aefdd4515;hp=7c81856321326b0969a5d61d3e20b23b2760e7f8;hb=afdfa5674c84bbb8c0e546384e03a058d317b7a0;hpb=3fa843216c918fe4a6151e55947cf3a7f46fcdb5 diff --git a/test/json b/test/json index 7c818563..5a2544c2 100755 --- a/test/json +++ b/test/json @@ -18,11 +18,6 @@ test_expect_equal "$output" "[{\"thread\": \"XXX\", \"subject\": \"json-search-subject\", \"tags\": [\"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 "Show message: json, utf-8" add_message "[subject]=\"json-show-utf8-body-sübjéct\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[body]=\"jsön-show-méssage\"" output=$(notmuch show --format=json "jsön-show-méssage") @@ -39,8 +34,4 @@ test_expect_equal "$output" "[{\"thread\": \"XXX\", \"subject\": \"json-search-utf8-body-sübjéct\", \"tags\": [\"inbox\", \"unread\"]}]" -test_begin_subtest "Search returning no messages" -output=$(notmuch search --format=json "this string had better not match any messages" | notmuch_search_sanitize) -test_expect_equal "$output" "[]" - test_done