|
473 | 473 | (should (lax-plist-get d2 1)) |
474 | 474 | (should-error (lax-plist-get c1 2) :type 'circular-list) |
475 | 475 | (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) |
477 | 477 | (should (lax-plist-get d2 2)) |
478 | 478 | (should-error (lax-plist-get c1 3) :type 'circular-list) |
479 | 479 | (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))) |
482 | 482 |
|
483 | 483 | (ert-deftest test-cycle-plist-member () |
484 | 484 | (let ((c1 (cyc1 1)) |
|
509 | 509 | (should (plist-put d2 1 1)) |
510 | 510 | (should-error (plist-put c1 2 2) :type 'circular-list) |
511 | 511 | (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) |
513 | 513 | (should (plist-put d2 2 2)) |
514 | 514 | (should-error (plist-put c1 3 3) :type 'circular-list) |
515 | 515 | (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))) |
518 | 518 |
|
519 | 519 | (ert-deftest test-cycle-lax-plist-put () |
520 | 520 | (let ((c1 (cyc1 1)) |
|
527 | 527 | (should (lax-plist-put d2 1 1)) |
528 | 528 | (should-error (lax-plist-put c1 2 2) :type 'circular-list) |
529 | 529 | (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) |
531 | 531 | (should (lax-plist-put d2 2 2)) |
532 | 532 | (should-error (lax-plist-put c1 3 3) :type 'circular-list) |
533 | 533 | (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))) |
536 | 536 |
|
537 | 537 | (ert-deftest test-cycle-equal () |
538 | 538 | (should-error (equal (cyc1 1) (cyc1 1))) |
|
0 commit comments