;;;; 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.
: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"