From f8366214801b52c7c1cc9c091fa5dcb42d3fd217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 6 Nov 2012 14:09:51 +0000 Subject: [PATCH] Fix: correct expectation for this test in batch-mode --- yasnippet-tests.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yasnippet-tests.el b/yasnippet-tests.el index c3ed30e..f95e772 100644 --- a/yasnippet-tests.el +++ b/yasnippet-tests.el @@ -198,6 +198,12 @@ (should (string= (yas--buffer-contents) "if condition\naaa\nelse\nbbb\nend"))))) (ert-deftest another-example-for-issue-271 () + ;; expect this to fail in batch mode since `region-active-p' doesn't + ;; used by `yas-expand-snippet' doesn't make sense in that context. + ;; + :expected-result (if noninteractive + :failed + :passed) (with-temp-buffer (yas-minor-mode 1) (let ((snippet "\\${${1:1}:`yas/selected-text`}"))