diff options
| author | Andrea Corallo | 2021-04-22 09:57:30 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2021-04-22 10:02:46 +0200 |
| commit | 062e5994802bbe634bae7f1aef99f65daf1ec44e (patch) | |
| tree | 7332f3d11abf56f31be71994fafccf9686715e17 | |
| parent | 606188a360111b6985f6615f96fb255330813aeb (diff) | |
| download | emacs-062e5994802bbe634bae7f1aef99f65daf1ec44e.tar.gz emacs-062e5994802bbe634bae7f1aef99f65daf1ec44e.zip | |
Improve a native compiler test
* test/src/comp-tests.el (comp-test-47868-1): Improve
testcase.
* test/src/comp-test-funcs.el (comp-test-47868-3-f)
(comp-test-47868-4-f): New functions.
| -rw-r--r-- | test/src/comp-test-funcs.el | 6 | ||||
| -rw-r--r-- | test/src/comp-tests.el | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el index 878db70609d..f2a246320ac 100644 --- a/test/src/comp-test-funcs.el +++ b/test/src/comp-test-funcs.el | |||
| @@ -508,6 +508,12 @@ | |||
| 508 | (defun comp-test-47868-2-f () | 508 | (defun comp-test-47868-2-f () |
| 509 | #(" " 0 1 (face font-lock-keyword-face))) | 509 | #(" " 0 1 (face font-lock-keyword-face))) |
| 510 | 510 | ||
| 511 | (defun comp-test-47868-3-f () | ||
| 512 | " ") | ||
| 513 | |||
| 514 | (defun comp-test-47868-4-f () | ||
| 515 | #(" " 0 1 (face font-lock-keyword-face))) | ||
| 516 | |||
| 511 | 517 | ||
| 512 | 518 | ||
| 513 | ;;;;;;;;;;;;;;;;;;;; | 519 | ;;;;;;;;;;;;;;;;;;;; |
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index cb9032aa410..a1e91ec5141 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -508,8 +508,13 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." | |||
| 508 | (should (equal (comp-test-46824-1-f) nil))) | 508 | (should (equal (comp-test-46824-1-f) nil))) |
| 509 | 509 | ||
| 510 | (comp-deftest comp-test-47868-1 () | 510 | (comp-deftest comp-test-47868-1 () |
| 511 | "Verify string hash consing strategy. | ||
| 512 | |||
| 513 | <https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-04/msg00921.html>" | ||
| 511 | (should-not (equal-including-properties (comp-test-47868-1-f) | 514 | (should-not (equal-including-properties (comp-test-47868-1-f) |
| 512 | (comp-test-47868-2-f)))) | 515 | (comp-test-47868-2-f))) |
| 516 | (should (eq (comp-test-47868-1-f) (comp-test-47868-3-f))) | ||
| 517 | (should (eq (comp-test-47868-2-f) (comp-test-47868-4-f)))) | ||
| 513 | 518 | ||
| 514 | 519 | ||
| 515 | ;;;;;;;;;;;;;;;;;;;;; | 520 | ;;;;;;;;;;;;;;;;;;;;; |