X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=tests.lisp;h=b555555c170c45c182922c8a46decfd23e700238;hp=86e86bdbb19ac6f8067f6b0e8ada0b3f0e88c264;hb=78b62107690123d8d7a1a400e4a1d744408a05b1;hpb=26d4fb77a1630200f6101d7adc0b2914c825090a diff --git a/tests.lisp b/tests.lisp index 86e86bd..b555555 100644 --- a/tests.lisp +++ b/tests.lisp @@ -379,6 +379,25 @@ (make-url "pg" :anchor "then" :vars '(("a" . "5") ("b" . "pi"))) "pg?a=5&b=pi#then") +(defclass test-unique () + ((a :initarg :a) + (b :initarg :b))) + + +(deftest :unique.1 + (let ((list (list (make-instance 'test-unique :a 1 :b 1) + (make-instance 'test-unique :a 2 :b 2) + (make-instance 'test-unique :a 3 :b 2)))) + (values + (unique-slot-values list 'a) + (unique-slot-values list 'b))) + (1 2 3) (1 2)) + +(deftest :unique.2 + (unique-slot-values nil 'a) + nil) + + ;;; MOP Testing ;; Disable attrib class until understand changes in sbcl/cmucl