Test that typed-array? returns #f with non-array argument
authorDaniel Llorens <daniel.llorens@bluewin.ch>
Wed, 17 Apr 2013 12:33:40 +0000 (14:33 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 9 Feb 2014 11:55:49 +0000 (12:55 +0100)
* test-suite/tests/arrays.test: ditto.

test-suite/tests/arrays.test

index 090338f..eed5031 100644 (file)
       (pass-if (eq? #f (typed-array? float    #t)))
       (pass-if (eq? #f (typed-array? double   #t)))
       (pass-if (eq? #f (typed-array? complex  #t)))
-      (pass-if (eq? #t (typed-array? scm      #t))))))
+      (pass-if (eq? #t (typed-array? scm      #t))))
+
+    (with-test-prefix "typed-array? returns #f"
+      (pass-if (eq? #f (typed-array? '(1 2 3) 'c64)))
+      (pass-if (eq? #f (typed-array? '(1 2 3) #t)))
+      (pass-if (eq? #f (typed-array? 99 'c64)))
+      (pass-if (eq? #f (typed-array? 99 #t))))))
 
 ;;;
 ;;; array-equal?