From a623a6dc667d018729befa298c1144dff0f2769f Mon Sep 17 00:00:00 2001
From: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Date: Fri, 13 Oct 2023 22:05:55 +0200
Subject: fix reporting rules tests

---
 lisp/mastodon-tl.el       |  2 +-
 test/mastodon-tl-tests.el | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index ddae34a..9209026 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2232,7 +2232,7 @@ report the account for spam."
                    "rules [TAB for options, | to separate]: "
                    alist nil t)))
     (mapcar (lambda (x)
-              (alist-get x alist))
+              (alist-get x alist nil nil #'equal))
             choices)))
 
 
diff --git a/test/mastodon-tl-tests.el b/test/mastodon-tl-tests.el
index e029ba7..d6940d4 100644
--- a/test/mastodon-tl-tests.el
+++ b/test/mastodon-tl-tests.el
@@ -1218,9 +1218,9 @@ correct value for following, as well as notifications enabled or disabled."
   "Should return a list of string numbers based on `mastodon-tl--test-instance-rules'"
   (let ((crm-separator "[ 	]*,[ 	]*"))
     (with-mock
-     (stub mastodon-tl--instance-rules => mastodon-tl--test-instance-rules)
-     (stub completing-read-multiple => '("We do not accept homophobia."
-                                         "We do not accept harassment."
-                                         "We also do not accept hate speech."))
-     (should (equal '("2" "5" "6")
-                    (mastodon-tl--read-rules-ids))))))
+      (stub mastodon-tl--instance-rules => mastodon-tl--test-instance-rules)
+      (stub completing-read-multiple => '("We do not accept homophobia."
+                                          "We do not accept harassment."
+                                          "We also do not accept hate speech."))
+      (should (equal '("2" "5" "6")
+                     (mastodon-tl--read-rules-ids))))))
-- 
cgit v1.2.3