X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;h=0835436b57be4464e9c33c3ea9ae8ed30e620341;hb=cc146d0b1c7d6d7a050713754f1ea9a8d71a46b5;hp=0caf623e078e9e22259c95d8a21c5c18da6a7504;hpb=cc0d0f58d7261d12a8d6a89153f58ea693618e79;p=umlisp.git diff --git a/tests.lisp b/tests.lisp index 0caf623..0835436 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: May 2003 ;;;; -;;;; $Id: tests.lisp,v 1.4 2003/05/05 23:13:28 kevin Exp $ +;;;; $Id: tests.lisp,v 1.5 2003/05/06 02:14:59 kevin Exp $ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -74,8 +74,16 @@ :order '(cui asc def desc)) "select SAB,DEF from MRDEF where CUI=39 and KSRL<=2 order by CUI asc,DEF desc") - - +(deftest ui.1 (umlisp::parse-cui "C0002341") 2341) +(deftest ui.2 (umlisp::parse-lui "L0002341") 2341) +(deftest ui.3 (umlisp::parse-sui "S0000000") 0) +(deftest ui.4 (umlisp::parse-tui "T123") 123) +(deftest ui.5 (fmt-cui 2341) "C0002341") +(deftest ui.6 (fmt-lui 2341) "L0002341") +(deftest ui.7 (fmt-sui 2341) "S0002341") +(deftest ui.8 (fmt-lui 231) "T231") +(deftest ui.9 (umlisp::make-cuisui 5 11) 50000011) +(deftest ui.10 (umlisp::decompose-cuisui 50000011) 5 11) (defun f2 (&key (srl *current-srl*)) "Return list of all ucon's"