1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: umlisp -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
6 ;;;; Purpose: Parsing tests for UMLisp
7 ;;;; Author: Kevin M. Rosenberg
8 ;;;; Date Started: May 2003
10 ;;;; $Id: parse.lisp,v 1.3 2003/05/08 04:36:12 kevin Exp $
12 ;;;; This file, part of UMLisp, is
13 ;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
15 ;;;; UMLisp users are granted the rights to distribute and use this software
16 ;;;; as governed by the terms of the GNU General Public License.
17 ;;;; *************************************************************************
19 (in-package #:umlisp-tests)
21 (eval-when (:compile-toplevel :load-toplevel :execute)
22 (if (probe-file (umlisp::umls-pathname "MRFILES"))
23 (pushnew :umls-files cl:*features*)
24 (format t "~&Skipping tests based on UMLS distribution~%")))
26 (import '(umlisp::*umls-files* umlisp::*umls-cols*))
30 (umlisp::ensure-ucols+ufiles)
31 (deftest uparse.1 (length *umls-files*) 52)
32 (deftest uparse.2 (length *umls-cols*) 327)
34 (sort (mapcar #'u::col (umlisp::ucols (umlisp::find-ufile "MRCON")))
36 ("CUI" "KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR" "LAT" "LRL" "LUI" "STR"
39 (sort (umlisp::fields (umlisp::find-ufile "MRCON"))
41 ("CUI" "KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR" "LAT" "LRL" "LUI" "STR"
45 (umlisp::custom-colnames-for-filename "MRCON")
47 ("KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFSTR"))
50 (umlisp::custom-value-fun
51 (umlisp::find-ucol "KCUISUI" "MRCON")))
56 (setq cl:*features* (delete :umls-files cl:*features*))