[Mumps2Py:] [105] test file for pattern-matching.

[ Thread Index | Date Index | More lists.mumps2py.org/discuss Archives ]


Revision: 105
Author:   pgallot
Date:     2008-02-13 21:01:51 +0000 (Wed, 13 Feb 2008)

Log Message:
-----------
test file for pattern-matching.

Added Paths:
-----------
    trunk/testfiles/pattern_matching.mps


Added: trunk/testfiles/pattern_matching.mps
===================================================================
--- trunk/testfiles/pattern_matching.mps	                        (rev 0)
+++ trunk/testfiles/pattern_matching.mps	2008-02-13 21:01:51 UTC (rev 105)
@@ -0,0 +1,12 @@
+ S i=1
+ W:"123-45-6789"?3N1"-"2N1"-"4N !,i,"yes"
+ For X="123.45XY","123.45","123","123.45xy" D
+ . S i=i+1
+ . W !,X
+ . I X?3N1"."2N.U W !,i,"yes"
+ ;
+ For X="999.1","9999.45","999.654321","123.45xy" D
+ . S i=i+1
+ . W !,X
+ . I X?3N1"."1.5N W !,i,"yes"
+


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/