+ (deftest :parse/4
+ (umlisp::filename-to-tablename "test")
+ "test")
+
+ (deftest :parse/5
+ (umlisp::filename-to-tablename "TEST.AB.RRF")
+ "TEST_AB")))
+
+(when (probe-file (umlisp::umls-pathname "MRFILES.RRF"))
+ (umlisp::ensure-ucols+ufiles)
+ (setq
+ *rt-parse*
+ (append
+ *rt-parse*
+ '(
+ (deftest uparse.1 (length *umls-files*) 63)
+ (deftest uparse.2 (length *umls-cols*) 434)
+ (deftest uparse.3
+ (sort (mapcar #'u::col (umlisp::ucols (umlisp::find-ufile "MRCONSO.RRF")))
+ #'string<)
+ ("AUI" "CODE" "CUI" "CVF" "ISPREF" "KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL"
+ "KPFENG" "KSUILRL" "LAT" "LUI" "SAB" "SAUI" "SCUI" "SDUI" "SRL" "STR" "STT"
+ "SUI" "SUPPRESS" "TS" "TTY"))
+ (deftest uparse.4
+ (equal
+ (sort (mapcar #'u::col (umlisp::ucols (umlisp::find-ufile "MRCONSO.RRF")))
+ #'string<)
+ (sort (copy-seq (umlisp::fields (umlisp::find-ufile "MRCONSO.RRF")))
+ #'string<))
+ t)
+ (deftest uparse.5
+ (sort
+ (umlisp::custom-colnames-for-filename "MRCONSO.RRF")
+ #'string<)
+ ("KCUILRL" "KCUILUI" "KCUISUI" "KLUILRL" "KPFENG" "KSUILRL"))
+ (deftest uparse.6
+ (compiled-function-p
+ (umlisp::custom-value-fun
+ (umlisp::find-ucol "KCUISUI" "MRCONSO.RRF")))
+ t)
+ ))))