mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: use (format "%S") to print nil in emacs test.
The behaviour of "emacsclient --eval nil" changed from emacs23 to emacs24, and in emacs24 it prints 'nil' rather than an empty string. (format "%S" foo) produces a sexpr form of foo, and is consistent between the two versions.
This commit is contained in:
parent
e01706c993
commit
3ba01608d7
1 changed files with 3 additions and 3 deletions
|
@ -8,10 +8,10 @@ test_emacs '(ignore)'
|
|||
|
||||
# test notmuch-wash-subject-to-patch-sequence-number (subject)
|
||||
test_begin_subtest "no patch sequence number"
|
||||
output=$(test_emacs '(notmuch-wash-subject-to-patch-sequence-number
|
||||
"[PATCH] A normal patch subject without numbers")'
|
||||
output=$(test_emacs '(format "%S" (notmuch-wash-subject-to-patch-sequence-number
|
||||
"[PATCH] A normal patch subject without numbers"))'
|
||||
)
|
||||
test_expect_equal "$output" ""
|
||||
test_expect_equal "$output" '"nil"'
|
||||
|
||||
test_begin_subtest "patch sequence number #1"
|
||||
output=$(test_emacs '(notmuch-wash-subject-to-patch-sequence-number
|
||||
|
|
Loading…
Reference in a new issue