(array-index-map!): Add a test failing in the current code.
authorKevin Ryde <user42@zip.com.au>
Fri, 10 Jun 2005 00:27:20 +0000 (00:27 +0000)
committerKevin Ryde <user42@zip.com.au>
Fri, 10 Jun 2005 00:27:20 +0000 (00:27 +0000)
test-suite/tests/ramap.test

index 467d7ab..088a2d3 100644 (file)
 (define-module (test-suite test-ramap)
   #:use-module (test-suite lib))
 
+;;;
+;;; array-index-map!
+;;;
+
+(with-test-prefix "array-index-map!"
+
+  (pass-if (let ((nlst '()))
+            (array-index-map! (make-array #f '(1 1))
+                              (lambda (n)
+                                (set! nlst (cons n nlst))))
+            (equal? nlst '(1)))))
+
 ;;;
 ;;; array-map!
 ;;;