We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2a45c1 commit 4ded317Copy full SHA for 4ded317
test/cl-binary-store-tests.lisp
@@ -688,6 +688,19 @@
688
do (loop for i fixnum below (length input) do (setf (aref input i) (random 256)))
689
do (try input))))
690
691
+(define-test simple-array-fixnum
692
+ (let* ((n 1000)
693
+ (arr (coerce (loop repeat n collect (random most-positive-fixnum))
694
+ '(simple-array fixnum (*)))))
695
+ (is 'equalp (restore (store nil arr)) arr))
696
+ (let* ((n 10)
697
+ (m 100)
698
+ (arr (make-array (list n m) :element-type 'fixnum :initial-contents
699
+ (loop repeat n
700
+ collect
701
+ (loop repeat m collect (random most-positive-fixnum))))))
702
+ (is 'equalp (restore (store nil arr)) arr)))
703
+
704
(define-test simple-array-fixnum-malicious
705
;; The below is a non-fixnum claiming to be in a fixnum array
706
(finish
0 commit comments