Mercurial > hg > xemacs-beta
comparison tests/automated/lisp-tests.el @ 5339:ba62563ec7c7
Accept more complex TYPEs in #'concatenate, cl-extra.el
lisp/ChangeLog addition:
2011-01-15 Aidan Kehoe <kehoea@parhasard.net>
* cl-extra.el (concatenate): Accept more complicated TYPEs in this
function, handing the sequences over to #'coerce if we don't
understand them here.
* cl-macs.el (inline): Don't proclaim #'concatenate as inline, its
compiler macro is more useful than doing that.
tests/ChangeLog addition:
2011-01-15 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el (list): Test #'concatenate, especially
with more complicated TYPEs, which were previously not accepted by
the function.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 15 Jan 2011 15:45:46 +0000 |
parents | 287499ff4c5f |
children | b4ef3128160c a9094f28f9a9 |
comparison
equal
deleted
inserted
replaced
5338:8608eadee6ba | 5339:ba62563ec7c7 |
---|---|
2812 (Assert (eq gensym (find 'not-in-it vector :default gensym))) | 2812 (Assert (eq gensym (find 'not-in-it vector :default gensym))) |
2813 (Assert (eq gensym (find 'not-in-it bit-vector :default gensym))) | 2813 (Assert (eq gensym (find 'not-in-it bit-vector :default gensym))) |
2814 (Assert (eq gensym (find 'not-in-it string :default gensym))) | 2814 (Assert (eq gensym (find 'not-in-it string :default gensym))) |
2815 (Assert (eq 'hi-there (find 'hi-there list))) | 2815 (Assert (eq 'hi-there (find 'hi-there list))) |
2816 ;; Different uninterned symbols with the same name. | 2816 ;; Different uninterned symbols with the same name. |
2817 (Assert (not (eq '#1=#:everyone (find '#1# list))))) | 2817 (Assert (not (eq '#1=#:everyone (find '#1# list)))) |
2818 | |
2819 ;; Test concatenate. | |
2820 (Assert (equal list (concatenate 'list vector))) | |
2821 (Assert (equal list (concatenate 'list (subseq vector 0 4) | |
2822 (subseq list 4)))) | |
2823 (Assert (equal vector (concatenate 'vector list))) | |
2824 (Assert (equal vector (concatenate `(vector * ,(length vector)) list))) | |
2825 (Assert (equal string (concatenate `(vector character ,(length string)) | |
2826 (append string nil)))) | |
2827 (Assert (equal bit-vector (concatenate 'bit-vector (subseq bit-vector 0 4) | |
2828 (append (subseq bit-vector 4) nil)))) | |
2829 (Assert (equal bit-vector (concatenate `(vector bit ,(length bit-vector)) | |
2830 (subseq bit-vector 0 4) | |
2831 (append (subseq bit-vector 4) nil))))) | |
2818 | 2832 |
2819 ;;; end of lisp-tests.el | 2833 ;;; end of lisp-tests.el |