diff options
| author | Lars Ingebrigtsen | 2020-12-11 13:51:07 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-12-11 13:51:07 +0100 |
| commit | 2cba76f948f7a5d10d1b07fd0cc3b3e236d82dc5 (patch) | |
| tree | 2323ed32ce55219f0783bf259218019690ba2e31 /test | |
| parent | cda3bb3b95a6fda60d93e98e99d77fe26cfbedca (diff) | |
| download | emacs-scratch/memrep.tar.gz emacs-scratch/memrep.zip | |
Tweak symbol sizescratch/memrep
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/memory-report-tests.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/memory-report-tests.el b/test/lisp/emacs-lisp/memory-report-tests.el index 146800fd2e8..01bcf18423a 100644 --- a/test/lisp/emacs-lisp/memory-report-tests.el +++ b/test/lisp/emacs-lisp/memory-report-tests.el | |||
| @@ -37,11 +37,17 @@ | |||
| 37 | (should (equal (memory-report-object-size (cons nil nil)) 16)) | 37 | (should (equal (memory-report-object-size (cons nil nil)) 16)) |
| 38 | (should (equal (memory-report-object-size (cons 1 2)) 16)) | 38 | (should (equal (memory-report-object-size (cons 1 2)) 16)) |
| 39 | 39 | ||
| 40 | (should (equal (memory-report-object-size (list 1 2)) 32)) | ||
| 41 | (should (equal (memory-report-object-size (list 1)) 16)) | ||
| 42 | |||
| 43 | (should (equal (memory-report-object-size (list 'foo)) 16)) | ||
| 44 | |||
| 45 | (should (equal (memory-report-object-size (vector 1 2 3 4)) 80)) | ||
| 46 | |||
| 40 | (should (equal (memory-report-object-size "") 32)) | 47 | (should (equal (memory-report-object-size "") 32)) |
| 41 | (should (equal (memory-report-object-size "a") 33)) | 48 | (should (equal (memory-report-object-size "a") 33)) |
| 42 | (should (equal (memory-report-object-size (propertize "a" 'face 'foo)) | 49 | (should (equal (memory-report-object-size (propertize "a" 'face 'foo)) |
| 43 | ;; Possibly? | 50 | 81))) |
| 44 | 161))) | ||
| 45 | 51 | ||
| 46 | (provide 'memory-report-tests) | 52 | (provide 'memory-report-tests) |
| 47 | 53 | ||