Commit 11727606 authored by pfdietz's avatar pfdietz

More tests of vector type, using specialized float arrays. Another vector constructor test.

parent 897ac732
......@@ -177,6 +177,23 @@
(typep s '(vector t *)))
nil)
(deftest vector.type.41
(notnot-mv (typep (make-array '10 :element-type 'short-float) 'vector))
t)
(deftest vector.type.42
(notnot-mv (typep (make-array '10 :element-type 'single-float) 'vector))
t)
(deftest vector.type.43
(notnot-mv (typep (make-array '10 :element-type 'double-float) 'vector))
t)
(deftest vector.type.44
(notnot-mv (typep (make-array '10 :element-type 'long-float) 'vector))
t)
;;;; Tests of the function VECTOR
(deftest vector.1
......@@ -227,3 +244,8 @@
(deftest vector.9
(typep (vector #\a #\b #\c) 'string)
nil)
(deftest vector.10
(notnot-mv (typep (vector 1 2 3) '(simple-vector *)))
t)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment