mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Test that typed-array? returns #f with non-array argument
* test-suite/tests/arrays.test: ditto.
This commit is contained in:
parent
19239bbfcb
commit
d41d5bf05e
1 changed files with 7 additions and 1 deletions
|
@ -188,7 +188,13 @@
|
|||
(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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue