]> git.notmuchmail.org Git - notmuch/blobdiff - test/emacs-subject-to-filename
test: always source test-lib.sh as ./test-lib.sh
[notmuch] / test / emacs-subject-to-filename
index 176e6859b0dbaba87d13f9bf87121eb49e469a83..43529a4840bea8f3a035174b23818ce87530d963 100755 (executable)
@@ -1,17 +1,17 @@
 #!/usr/bin/env bash
 
 test_description="emacs: mail subject to filename"
-. test-lib.sh
+. ./test-lib.sh
 
 # emacs server can't be started in a child process with $(test_emacs ...)
 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