branch: elpa/buttercup commit 108d2298cc34d906b196178ad955e3dc139e1779 Author: Philipp Stephani <p...@google.com> Commit: Philipp Stephani <p...@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 <cont...@jorgenschaefer.de> +;; Copyright (C) 2015, 2021 Jorgen Schaefer <cont...@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)