X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;h=15dc08203d0a69c3debf75a8d337b6d5a27b8e01;hb=3a8891dc54f83ccdc16bd4094f75cab2cd3dab6e;hp=48139dbb53fd6c59bdb68eb6bb5edeb15fb823c1;hpb=e52c58412603bcb1517da095cbbc3ac2dd1d270f;p=hyperobject.git diff --git a/tests.lisp b/tests.lisp index 48139db..15dc082 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: tests.lisp,v 1.9 2003/07/29 20:49:05 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -40,7 +40,7 @@ (addresses :initarg :addresses :accessor addresses :subobject t)) (:metaclass hyperobject-class) - (:default-initargs :first-name "" :last-name "" :dob 0 :resume nil) + (:default-initargs :first-name "" :last-name "" :dob 0 :resume nil) (:default-print-slots first-name last-name dob resume) (:user-name "Person") (:description "A Person") @@ -58,7 +58,7 @@ (phones :initarg :phones :accessor phones :subobject t)) (:metaclass hyperobject-class) - (:default-initargs :title nil :street nil) + (:default-initargs :title nil :street nil) (:user-name "Address" "Addresses") (:default-print-slots title street) (:description "An address")) @@ -90,7 +90,7 @@ (defparameter office (make-instance 'address :title "Office" :street "113 Main St." :phones (list office-phone-1 office-phone-2 office-phone-3))) - + (defparameter mary (make-instance 'person :first-name "Mary" :last-name "Jackson" :dob (encode-universal-time 1 2 3 4 5 2000) @@ -104,11 +104,11 @@ (rem-all-tests) -(deftest p1 (view-to-string mary) "Person: +(deftest :p1 (view-to-string mary :vid :compact-text) "Person: Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace ") -(deftest p2 (view-to-string mary :subobjects t) "Person: +(deftest :p2 (view-to-string mary :subobjects t :vid :compact-text) "Person: Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace Addresses: Home 321 Shady Lane @@ -122,8 +122,13 @@ Fax 123-0005 ") -(deftest p3 (view-to-string mary :vid :compact-text-labels) +(deftest :p3 (view-to-string mary :vid :compact-text-labels) "Person: first-name Mary last-name Jackson dob Thu, 4 May 2000 03:02:01 resume Style & Grace ") +(deftest :p4 (view-to-string mary :vid :compact-text) +"Person: + Mary Jackson Thu, 4 May 2000 03:02:01 Style & Grace +") +