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

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

[nongnu] elpa/buttercup 108d229 340/340: Fix property comparisons in uni


From: ELPA Syncer
Subject: [nongnu] elpa/buttercup 108d229 340/340: Fix property comparisons in unit tests.
Date: Thu, 16 Dec 2021 15:00:03 -0500 (EST)

branch: elpa/buttercup
commit 108d2298cc34d906b196178ad955e3dc139e1779
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    Fix property comparisons in unit tests.
    
    Before Emacs 29, ‘equal-including-properties’ should not be used to compare
    propertized strings due to 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6581.
    ERT provides a replacement ‘ert-equal-including-properties’.
---
 tests/test-buttercup.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index bda3e6f..4b73b78 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -1,6 +1,6 @@
 ;;; buttercup-test.el --- Tests for buttercup.el -*-lexical-binding:t-*-
 
-;; Copyright (C) 2015  Jorgen Schaefer <contact@jorgenschaefer.de>
+;; Copyright (C) 2015, 2021  Jorgen Schaefer <contact@jorgenschaefer.de>
 
 ;; This program is free software; you can redistribute it and/or
 ;; modify it under the terms of the GNU General Public License
@@ -27,6 +27,7 @@
 (require 'autoload)
 (require 'ansi-color)
 (require 'ert)
+(require 'ert-x)
 (require 'cl-lib)
 (require 'imenu)
 
@@ -1117,7 +1118,7 @@ text properties using `ansi-color-apply'."
 ;;;;;;;;;;;;;
 ;;; Reporters
 (buttercup-define-matcher-for-binary-function
-    :to-equal-including-properties equal-including-properties)
+    :to-equal-including-properties ert-equal-including-properties)
 
 (describe "The batch reporters"
   :var (print-buffer)



reply via email to

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