emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 06efd73 09/31: Fix assertion so tests fail.


From: Jackson Ray Hamilton
Subject: [elpa] master 06efd73 09/31: Fix assertion so tests fail.
Date: Mon, 09 Feb 2015 01:09:32 +0000

branch: master
commit 06efd73340f04fc7be99f3917d98f821afc84772
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    Fix assertion so tests fail.
---
 test/context-coloring-test.el |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/test/context-coloring-test.el b/test/context-coloring-test.el
index e5e9740..5a55f28 100644
--- a/test/context-coloring-test.el
+++ b/test/context-coloring-test.el
@@ -228,7 +228,12 @@ EXPECTED-FACE."
 
 (defun context-coloring-test-assert-no-message (buffer)
   "Assert that BUFFER has no message."
-  (null (get-buffer buffer)))
+  (when (get-buffer buffer)
+    (ert-fail (format (concat "Expected buffer `%s' to have no messages, "
+                              "but it did: `%s'")
+                      buffer
+                      (with-current-buffer buffer
+                        (buffer-string))))))
 
 (defun context-coloring-test-kill-buffer (buffer)
   "Kill BUFFER if it exists."
@@ -409,7 +414,7 @@ t for a theme with SETTINGS."
   (context-coloring-test-assert-defined-warning theme)
   (context-coloring-test-kill-buffer "*Warnings*")
   (enable-theme theme)
-  (context-coloring-test-assert-defined-warning theme)
+  (context-coloring-test-assert-no-message "*Warnings*")
   (context-coloring-test-assert-face 0 "#cccccc")
   (context-coloring-test-assert-face 1 "#dddddd"))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]