X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Farray.pure.lisp;h=d04416d8a68de8fcb0c7cf368669a6bdfbc7ca1d;hb=5d5894082c39ca44da75d38859d669c7b2108f6a;hp=fe9c4f083c418008eb787f32667a384dc4404b86;hpb=f94339428a65d2002f73086bcc6022885f656c1f;p=sbcl.git diff --git a/tests/array.pure.lisp b/tests/array.pure.lisp index fe9c4f0..d04416d 100644 --- a/tests/array.pure.lisp +++ b/tests/array.pure.lisp @@ -221,25 +221,3 @@ (type-error () :good)))) -;;; SIMPLE-VECTOR-COMPARE-AND-SWAP - -(let ((v (vector 1))) - ;; basics - (assert (eql 1 (sb-kernel:simple-vector-compare-and-swap v 0 1 2))) - (assert (eql 2 (sb-kernel:simple-vector-compare-and-swap v 0 1 3))) - (assert (eql 2 (svref v 0))) - ;; bounds - (multiple-value-bind (res err) - (ignore-errors (sb-kernel:simple-vector-compare-and-swap v -1 1 2)) - (assert (not res)) - (assert (typep err 'type-error))) - (multiple-value-bind (res err) - (ignore-errors (sb-kernel:simple-vector-compare-and-swap v 1 1 2)) - (assert (not res)) - (assert (typep err 'type-error)))) - -;; type of the first argument -(multiple-value-bind (res err) - (ignore-errors (sb-kernel:simple-vector-compare-and-swap "foo" 1 1 2)) - (assert (not res)) - (assert (typep err 'type-error)))