* module/ice-9/read.scm: As stated.
* test-suite/tests/arrays.test: Test a fixed case.
(list lbnd (+ lbnd (1- len))))
lbnd))))
(define (read-shape ch alt)
- (if (memv ch '(#\@ @\:))
+ (if (memv ch '(#\@ #\:))
(let*-values (((ch head) (read-dimension ch))
((ch tail) (read-shape ch '())))
(values ch (cons head tail)))
;;; printing arrays
;;;
-(with-test-prefix/c&e "printing arrays"
+(with-test-prefix/c&e "printing and reading arrays"
(pass-if-equal "writing 1D arrays that aren't vectors"
"#1(b c)"
(format #f "~a" (make-shared-array #(a b c)
(pass-if-equal "empty 3-array with last nonempty dim."
"#3:0:0:1()"
(format #f "~a" (make-array 1 0 0 1)))
+
+ (pass-if-equal "empty typed 3-array with last nonempty dim."
+ "#3f64:0:0:1()"
+ (format #f "~a" (make-typed-array 'f64 1 0 0 1)))
(pass-if-equal "empty 3-array with middle nonempty dim."
"#3:0:1:0()"