diff options
| author | Andrea Corallo | 2019-08-04 20:14:50 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:57 +0100 |
| commit | 63bcc81d1df8524b20dab1fd45b2cba4d822a786 (patch) | |
| tree | 1151ca4be9caec513b7cbb8fe4f7a9a93cc023c2 /test/src | |
| parent | c77ad1866d0e559db41118ad5a2c306c81fa3c21 (diff) | |
| download | emacs-63bcc81d1df8524b20dab1fd45b2cba4d822a786.tar.gz emacs-63bcc81d1df8524b20dab1fd45b2cba4d822a786.zip | |
add incoming &rest arg support
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 7cf2a12f4a2..96362ecf6e5 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -164,13 +164,13 @@ | |||
| 164 | (should (equal (comp-tests-ffuncall-callee-optional-f 1 2 3) '(1 2 3 nil))) | 164 | (should (equal (comp-tests-ffuncall-callee-optional-f 1 2 3) '(1 2 3 nil))) |
| 165 | (should (equal (comp-tests-ffuncall-callee-optional-f 1 2) '(1 2 nil nil))) | 165 | (should (equal (comp-tests-ffuncall-callee-optional-f 1 2) '(1 2 nil nil))) |
| 166 | 166 | ||
| 167 | ;; (defun comp-tests-ffuncall-callee-rest-f (a b &rest c) | 167 | (defun comp-tests-ffuncall-callee-rest-f (a b &rest c) |
| 168 | ;; (list a b c)) | 168 | (list a b c)) |
| 169 | ;; (native-compile #'comp-tests-ffuncall-callee-rest-f) | 169 | (native-compile #'comp-tests-ffuncall-callee-rest-f) |
| 170 | 170 | ||
| 171 | ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2) '(1 2 nil))) | 171 | (should (equal (comp-tests-ffuncall-callee-rest-f 1 2) '(1 2 nil))) |
| 172 | ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3) '(1 2 (3)))) | 172 | (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3) '(1 2 (3)))) |
| 173 | ;; (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3 4) '(1 2 (3 4)))) | 173 | (should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3 4) '(1 2 (3 4)))) |
| 174 | 174 | ||
| 175 | (defun comp-tests-ffuncall-native-f () | 175 | (defun comp-tests-ffuncall-native-f () |
| 176 | "Call a primitive with no dedicate op." | 176 | "Call a primitive with no dedicate op." |
| @@ -291,7 +291,6 @@ | |||
| 291 | ;; Bgeq | 291 | ;; Bgeq |
| 292 | (>= x y)) | 292 | (>= x y)) |
| 293 | 293 | ||
| 294 | |||
| 295 | (native-compile #'comp-tests-eqlsign-f) | 294 | (native-compile #'comp-tests-eqlsign-f) |
| 296 | (native-compile #'comp-tests-gtr-f) | 295 | (native-compile #'comp-tests-gtr-f) |
| 297 | (native-compile #'comp-tests-lss-f) | 296 | (native-compile #'comp-tests-lss-f) |