Changeset 508 for ccr/trunk/p/C0CUNIT.m


Ignore:
Timestamp:
May 21, 2009, 1:12:11 PM (15 years ago)
Author:
George Lilly
Message:

formatting for Version 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ccr/trunk/p/C0CUNIT.m

    r416 r508  
    1 C0CUNIT ; CCDCCR/GPL - Unit Testing Library; 5/07/08
    2  ;;0.1;CCDCCR;nopatch;noreleasedate
     1C0CUNIT ; CCDCCR/GPL - Unit Testing Library; 5/07/08
     2 ;;1.0;C0C;;May 19, 2009;
    33 ;Copyright 2008 George Lilly. Licensed under the terms of the GNU
    44 ;General Public License See attached copy of the License.
     
    2222          Q
    2323          ;
    24 ZT(ZARY,BAT,TST) ; private routine to add a test case to the ZARY array
     24ZT(ZARY,BAT,TST)        ; private routine to add a test case to the ZARY array
    2525          ; ZARY IS PASSED BY REFERENCE
    2626          ; BAT is a string identifying the test battery
     
    4545          Q
    4646          ;
    47 ZLOAD(ZARY,ROUTINE)  ; load tests into ZARY which is passed by reference
     47ZLOAD(ZARY,ROUTINE)      ; load tests into ZARY which is passed by reference
    4848          ; ZARY IS PASSED BY NAME
    4949          ; ZARY = name of the root, closed array format (e.g., "^TMP($J)")
     
    6868          Q
    6969          ;
    70 ZTEST(ZARY,WHICH)   ; try out the tests using a passed array ZTEST
     70ZTEST(ZARY,WHICH)         ; try out the tests using a passed array ZTEST
    7171          N ZI,ZX,ZR,ZP
    7272          S DEBUG=0
     
    104104          Q
    105105          ;
    106 TEST   ; RUN ALL THE TEST CASES
     106TEST      ; RUN ALL THE TEST CASES
    107107          N ZTMP
    108108          D ZLOAD(.ZTMP)
     
    115115          Q
    116116          ;
    117 GTSTS(GTZARY,RTN) ; return an array of test names
     117GTSTS(GTZARY,RTN)       ; return an array of test names
    118118          N I,J S I="" S I=$O(GTZARY("TESTS",I))
    119119          F J=0:0  Q:I=""  D
     
    122122          Q
    123123          ;
    124 TESTALL(RNM) ; RUN ALL THE TESTS
     124TESTALL(RNM)    ; RUN ALL THE TESTS
    125125          N ZI,J,TZTMP,TSTS,TOTP,TOTF
    126126          S TOTP=0 S TOTF=0
     
    141141          Q
    142142          ;
    143 TLIST(ZARY) ; LIST ALL THE TESTS
     143TLIST(ZARY)     ; LIST ALL THE TESTS
    144144          ; THEY ARE MARKED AS ;;><TESTNAME> IN THE TEST CASES
    145145          ; ZARY IS PASSED BY REFERENCE
     
    155155          Q
    156156          ;
    157 MEDS
     157MEDS   
    158158 N DEBUG S DEBUG=0
    159159 N DFN S DFN=5685
     
    172172 D FILEOUT^C0CRNF(OUTXML,"TESTMEDS.xml")
    173173 Q
    174 PAT
     174PAT     
    175175 D ANALYZE^ARJTXRD("C0CDPT",.OUT) ; Analyze a routine in the directory
    176176 N X,Y
Note: See TracChangeset for help on using the changeset viewer.