]> git.notmuchmail.org Git - notmuch/commit
First tests for JSON output and UTF-8 in mail body and subject
authorGregor Hoffleit <gregor@hoffleit.de>
Tue, 13 Apr 2010 16:37:57 +0000 (18:37 +0200)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Apr 2010 00:10:23 +0000 (17:10 -0700)
commit08deef5f7571d7207039e374307605de8e97ddac
tree7e61ae7a248c3792ff4bdd0bd2cb1d0a24dff256
parente31aa92a4c97b0527cbdb93ed9027d77c2bff70f
First tests for JSON output and UTF-8 in mail body and subject

The test suite doesn't yet cover --format=json output nor UTF-8 in
subject or body.

This patch starts with test cases for 'search --format=json' and
'show --format=json'.

Furthermore, it has test cases for a search for a UTF-8 string in a mail
body for a UTF-8 string in a mail subject.

Finally, it has a test case for --format=json with UTF-8 messages,
demonstrating the fix in 1267697893-sup-4538@sam.mediasupervision.de.

Reviewed-by: Carl Worth <cworth@cworth.org>
Updated tests to current implementation of the test suite.
These tests demonstrate a bug in the current implementation
of "notmuch show --format=json", (timestamp output is changed
depending on current timezone).
test/notmuch-test