Changeset 27 for ccr/trunk/p/GPLXPATH.m


Ignore:
Timestamp:
Jun 30, 2008, 2:21:04 PM (16 years ago)
Author:
George Lilly
Message:

New TESTALLGPLUNIT and fixes to GPLXPATH test cases

File:
1 edited

Legend:

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

    r22 r27  
    333333      Q
    334334      ;
    335 TEST   ; RUN ALL THE TEST CASES
    336         N ZTMP
    337         D ZLOAD^GPLUNIT("ZTMP","GPLXPATH")
    338         D ZTEST^GPLUNIT(.ZTMP,"ALL")
    339         W "PASSED: ",TPASSED,!
    340         W "FAILED: ",TFAILED,!
    341         W !
    342         ; W "THE TESTS!",!
    343         ; ZWR ZTMP
    344         Q
    345         ;
     335TEST  ; Run all the test cases
     336      D TESTALL^GPLUNIT("GPLXPATH")
     337      Q
     338      ;
     339OLDTEST   ; RUN ALL THE TEST CASES
     340        N ZTMP
     341        D ZLOAD^GPLUNIT("ZTMP","GPLXPATH")
     342        D ZTEST^GPLUNIT(.ZTMP,"ALL")
     343        W "PASSED: ",TPASSED,!
     344        W "FAILED: ",TFAILED,!
     345        W !
     346        ; W "THE TESTS!",!
     347        ; ZWR ZTMP
     348        Q
     349        ;
    346350ZTEST(WHICH) ; RUN ONE SET OF TESTS
    347         N ZTMP
    348         S DEBUG=1
    349         D ZLOAD^GPLUNIT("ZTMP","GPLXPATH")
    350         D ZTEST^GPLUNIT(.ZTMP,WHICH)
    351         Q
    352         ;
     351        N ZTMP
     352        S DEBUG=1
     353        D ZLOAD^GPLUNIT("ZTMP","GPLXPATH")
     354        D ZTEST^GPLUNIT(.ZTMP,WHICH)
     355        Q
     356        ;
    353357TLIST ; LIST THE TESTS
    354358      N ZTMP
     
    465469;;>>>D ZTEST^GPLXPATH("INITXML")
    466470;;>>>D QOPEN^GPLXPATH("GBL","GXML")
    467 ;;>>?$P(GBL(1),"^",3)=12
     471;;>>?$P(GBL(1),";",3)=12
    468472;;>>>D BUILD^GPLXPATH("GBL","G2")
    469473;;>>?G2(G2(0))="</SECOND>"
     
    472476;;>>>D ZTEST^GPLXPATH("INITXML")
    473477;;>>>D QOPEN^GPLXPATH("GBL","GXML","//FIRST/SECOND")
    474 ;;>>?$P(GBL(1),"^",3)=12
     478;;>>?$P(GBL(1),";",3)=11
    475479;;>>>D BUILD^GPLXPATH("GBL","G2")
    476480;;>>?G2(G2(0))="</SECOND>"
     
    479483;;>>>D ZTEST^GPLXPATH("INITXML")
    480484;;>>>D QCLOSE^GPLXPATH("GBL","GXML")
    481 ;;>>?$P(GBL(1),"^",3)=13
     485;;>>?$P(GBL(1),";",3)=13
    482486;;>>>D BUILD^GPLXPATH("GBL","G2")
    483487;;>>?G2(G2(0))="</FIRST>"
     
    486490;;>>>D ZTEST^GPLXPATH("INITXML")
    487491;;>>>D QCLOSE^GPLXPATH("GBL","GXML","//FIRST/SECOND/THIRD")
    488 ;;>>?$P(GBL(1),"^",3)=13
     492;;>>?$P(GBL(1),";",3)=13
    489493;;>>>D BUILD^GPLXPATH("GBL","G2")
    490494;;>>?G2(G2(0))="</FIRST>"
Note: See TracChangeset for help on using the changeset viewer.