diff options
Diffstat (limited to 'test-suite/tests/arrays.test')
-rw-r--r-- | test-suite/tests/arrays.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test-suite/tests/arrays.test b/test-suite/tests/arrays.test index 2652bfda4..57d23af5c 100644 --- a/test-suite/tests/arrays.test +++ b/test-suite/tests/arrays.test @@ -335,6 +335,11 @@ (let* ((a (make-array 0 4 4))) (not (array-contents (transpose-array a 1 0) #t)))) + ;; This is a consequence of (array-contents? a #t) => #t. + (pass-if "empty array" + (let ((a (make-typed-array 'f64 2 0 0))) + (uniform-vector? (array-contents a)))) + (pass-if "broadcast vector I" (let* ((a (make-array 0 4)) (b (make-shared-array a (lambda (i j k) (list k)) 1 1 4))) |