[PATCH 2/3] test: Add `test_emacs_expect_t'.
David Edmondson
dme at dme.org
Tue Jan 17 06:35:07 PST 2012
On Tue, 17 Jan 2012 18:26:41 +0400, Dmitry Kurochkin <dmitry.kurochkin at gmail.com> wrote:
> Sorry, I still do not understand why we can not implement
> test_emacs_expect_t() like:
>
> result=${test_emacs $@}
> test_expect_equal $result t
>
> Can you please explain?
In the failure case test_expect_equal does:
test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)"
that diff output is not useful here, because the test harness doesn't
have any expected output other than `t' with which to diff the actual
output.
The emacs-address-cleaning test shows how we will provide expected
vs. actual output directly from within emacs, making it easier for the
developer to figure out what went wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120117/9aca0d02/attachment.pgp>
More information about the notmuch
mailing list