X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fparse.lisp;h=14126bef8d6c9319554331ec1a660d524395cbc9;hb=c9435f6982e2b78a7f0f3e4bf4ce42a5076f3795;hp=71a479b1a08d244185667ddaa2a933d57a35425a;hpb=26b92c8df70bcd58358b343db835a599cdc56013;p=umlisp.git diff --git a/tests/parse.lisp b/tests/parse.lisp index 71a479b..14126be 100644 --- a/tests/parse.lisp +++ b/tests/parse.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: May 2003 ;;;; -;;;; $Id: parse.lisp,v 1.2 2003/05/08 01:28:30 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file, part of UMLisp, is ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D. @@ -27,10 +27,29 @@ #+umls-files (progn - (umlisp::ensure-init-umls) + (umlisp::ensure-ucols+ufiles) (deftest uparse.1 (length *umls-files*) 52) (deftest uparse.2 (length *umls-cols*) 327) - + (deftest uparse.3 + (sort (mapcar #'u::col (umlisp::ucols (umlisp::find-ufile "MRCON"))) + #'string<) + ("CUI" "KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR" "LAT" "LRL" "LUI" "STR" + "STT" "SUI" "TS")) + (deftest uparse.4 + (sort (umlisp::fields (umlisp::find-ufile "MRCON")) + #'string<) + ("CUI" "KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR" "LAT" "LRL" "LUI" "STR" + "STT" "SUI" "TS")) + (deftest uparse.5 + (sort + (umlisp::custom-colnames-for-filename "MRCON") + #'string<) + ("KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR")) + (deftest uparse.6 + (compiled-function-p + (umlisp::custom-value-fun + (umlisp::find-ucol "KCUISUI" "MRCON"))) + t) ) ;; umls-files #+umls-files