Skip to content

Commit d4429df

Browse files
committed
Fix typos in tests for lax-plist-get etc.
Problem reported by Eli Zaretskii (Bug#25606#62). * test/src/fns-tests.el (test-cycle-lax-plist-get) (test-cycle-plist-put, test-cycle-lax-plist-put): Fix tests to match behavior.
1 parent 0769c99 commit d4429df

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/src/fns-tests.el

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,12 @@
473473
(should (lax-plist-get d2 1))
474474
(should-error (lax-plist-get c1 2) :type 'circular-list)
475475
(should (lax-plist-get c2 2))
476-
(should-not (lax-plist-get d1 2))
476+
(should-error (lax-plist-get d1 2) :type 'wrong-type-argument)
477477
(should (lax-plist-get d2 2))
478478
(should-error (lax-plist-get c1 3) :type 'circular-list)
479479
(should-error (lax-plist-get c2 3) :type 'circular-list)
480-
(should-not (lax-plist-get d1 3))
481-
(should-not (lax-plist-get d2 3))))
480+
(should-error (lax-plist-get d1 3) :type 'wrong-type-argument)
481+
(should-error (lax-plist-get d2 3) :type 'wrong-type-argument)))
482482

483483
(ert-deftest test-cycle-plist-member ()
484484
(let ((c1 (cyc1 1))
@@ -509,12 +509,12 @@
509509
(should (plist-put d2 1 1))
510510
(should-error (plist-put c1 2 2) :type 'circular-list)
511511
(should (plist-put c2 2 2))
512-
(should (plist-put d1 2 2))
512+
(should-error (plist-put d1 2 2) :type 'wrong-type-argument)
513513
(should (plist-put d2 2 2))
514514
(should-error (plist-put c1 3 3) :type 'circular-list)
515515
(should-error (plist-put c2 3 3) :type 'circular-list)
516-
(should (plist-put d1 3 3))
517-
(should (plist-put d2 3 3))))
516+
(should-error (plist-put d1 3 3) :type 'wrong-type-argument)
517+
(should-error (plist-put d2 3 3) :type 'wrong-type-argument)))
518518

519519
(ert-deftest test-cycle-lax-plist-put ()
520520
(let ((c1 (cyc1 1))
@@ -527,12 +527,12 @@
527527
(should (lax-plist-put d2 1 1))
528528
(should-error (lax-plist-put c1 2 2) :type 'circular-list)
529529
(should (lax-plist-put c2 2 2))
530-
(should (lax-plist-put d1 2 2))
530+
(should-error (lax-plist-put d1 2 2) :type 'wrong-type-argument)
531531
(should (lax-plist-put d2 2 2))
532532
(should-error (lax-plist-put c1 3 3) :type 'circular-list)
533533
(should-error (lax-plist-put c2 3 3) :type 'circular-list)
534-
(should (lax-plist-put d1 3 3))
535-
(should (lax-plist-put d2 3 3))))
534+
(should-error (lax-plist-put d1 3 3) :type 'wrong-type-argument)
535+
(should-error (lax-plist-put d2 3 3) :type 'wrong-type-argument)))
536536

537537
(ert-deftest test-cycle-equal ()
538538
(should-error (equal (cyc1 1) (cyc1 1)))

0 commit comments

Comments
 (0)