diff options
| author | Stefan Monnier | 2022-09-25 16:15:16 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-09-25 16:15:16 -0400 |
| commit | 650c20f1ca4e07591a727e1cfcc74b3363d15985 (patch) | |
| tree | 85d11f6437cde22f410c25e0e5f71a3131ebd07d /test/src/alloc-tests.el | |
| parent | 8869332684c2302b5ba1ead4568bbc7ba1c0183e (diff) | |
| parent | 4b85ae6a24380fb67a3315eaec9233f17a872473 (diff) | |
| download | emacs-650c20f1ca4e07591a727e1cfcc74b3363d15985.tar.gz emacs-650c20f1ca4e07591a727e1cfcc74b3363d15985.zip | |
Merge 'master' into noverlay
Diffstat (limited to 'test/src/alloc-tests.el')
| -rw-r--r-- | test/src/alloc-tests.el | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/src/alloc-tests.el b/test/src/alloc-tests.el index aff480c6b66..967833e1903 100644 --- a/test/src/alloc-tests.el +++ b/test/src/alloc-tests.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; alloc-tests.el --- alloc tests -*- lexical-binding: t -*- | 1 | ;;; alloc-tests.el --- alloc tests -*- lexical-binding: t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2015-2017 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2015-2022 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Daniel Colascione <dancol@dancol.org> | 5 | ;; Author: Daniel Colascione <dancol@dancol.org> |
| 6 | ;; Keywords: | 6 | ;; Keywords: |
| @@ -30,7 +30,7 @@ | |||
| 30 | (require 'cl-lib) | 30 | (require 'cl-lib) |
| 31 | 31 | ||
| 32 | (ert-deftest finalizer-object-type () | 32 | (ert-deftest finalizer-object-type () |
| 33 | (should (equal (type-of (make-finalizer nil)) 'finalizer))) | 33 | (should (equal (type-of (make-finalizer #'ignore)) 'finalizer))) |
| 34 | 34 | ||
| 35 | (ert-deftest record-1 () | 35 | (ert-deftest record-1 () |
| 36 | (let ((x (record 'foo 1 2 3))) | 36 | (let ((x (record 'foo 1 2 3))) |
| @@ -51,3 +51,12 @@ | |||
| 51 | (should-not (eq x y)) | 51 | (should-not (eq x y)) |
| 52 | (dotimes (i 4) | 52 | (dotimes (i 4) |
| 53 | (should (eql (aref x i) (aref y i)))))) | 53 | (should (eql (aref x i) (aref y i)))))) |
| 54 | |||
| 55 | ;; Bug#39207 | ||
| 56 | (ert-deftest aset-nbytes-change () | ||
| 57 | (let ((s (make-string 1 ?a))) | ||
| 58 | (dolist (c (list 10003 ?b 128 ?c ?d (max-char) ?e)) | ||
| 59 | (aset s 0 c) | ||
| 60 | (should (equal s (make-string 1 c)))))) | ||
| 61 | |||
| 62 | ;;; alloc-tests.el ends here | ||