[PATCH v3 2/5] test: Add tests for 'config' command
Jameson Graef Rollins
jrollins at finestructure.net
Tue Apr 10 00:30:29 PDT 2012
On Thu, Apr 05 2012, Peter Wang <novalazy at gmail.com> wrote:
> +test_begin_subtest "Set string value"
> +notmuch config set foo.bar baz
> +test_expect_equal "$(notmuch config get foo.bar)" "baz"
> +
> +test_begin_subtest "Set list value"
> +notmuch config set foo.list xxx "yyy yyy" "zzz zzz"
> +test_expect_equal "$(notmuch config get foo.list)" "\
> +xxx
> +yyy yyy
> +zzz zzz"
I find it slightly strange to use non-existent fields here, but I also
don't see that it hurts anything either. At least at the moment.
Another option would be to use an existing field, and change it back
when you're done.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120410/296e2171/attachment.pgp>
More information about the notmuch
mailing list