X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;fp=tests.lisp;h=79fd4e324ac82d9dc5669824ad866654deab484c;hb=380fefd012a0ef9b6b75833debd1d90155b7a060;hp=7366f8a485f6de0c56125fc18f4220a665ab386d;hpb=32c52aa77759462004f83129200dca3b0a916766;p=umlisp.git diff --git a/tests.lisp b/tests.lisp index 7366f8a..79fd4e3 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: May 2003 ;;;; -;;;; $Id: tests.lisp,v 1.2 2003/05/03 00:27:30 kevin Exp $ +;;;; $Id: tests.lisp,v 1.3 2003/05/03 17:10:08 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -52,3 +52,20 @@ +(defun f2 (&key (srl *current-srl*)) + "Return list of all ucon's" + (umlisp::with-umlisp-query ('mrcon (cui kpfstr kcuilrl) srl nil nil) + (make-instance 'ucon :cui (ensure-integer cui) :pfstr kpfstr + :lrl (ensure-integer kcuilrl)))) + +(defun f1 (&key (srl *current-srl*)) + "Return list of all ucon's" + (umlisp::with-sql-connection (db) + (clsql:map-query + 'list + #'(lambda (cui pfstr cuilrl) + (make-instance 'ucon :cui (ensure-integer cui) + :pfstr pfstr + :lrl (ensure-integer cuilrl))) + (query-string 'mrcon '(cui kpfstr kcuilrl) srl nil nil) + :database db)))