aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/alloc-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/alloc-tests.el')
-rw-r--r--test/src/alloc-tests.el13
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