1.2.5. test/regress/rt-1.01.05

Start felix section to test/regress/rt-1.01.05-0.flx[1 /1 ]
     1: #line 266 "./lpsrc/flx_regress.pak"
     2: //Check strings
     3: // test the string library
     4: #import <flx.flxh>
     5: var x = "Hello";
     6: x += "+";
     7: x += "World";
     8: print x; endl;
     9: assert(x == "Hello+World");
    10: print x.[1 to 6]; endl;
    11: print x.[to 6]; endl;
    12: print x.[6 to]; endl;
    13: print x.[6 to -1]; endl;
    14: 
    15: var i = 0;
    16: var n = len x;
    17: while {i < n} {
    18:   print x.[i];
    19:   ++i;
    20: };
    21: endl;
    22: 
    23: i = 1;
    24: while {i <= n} {
    25:   print x.[-i];
    26:   ++i;
    27: };
    28: endl;
End felix section to test/regress/rt-1.01.05-0.flx[1]
Start data section to test/regress/rt-1.01.05-0.expect[1 /1 ]
     1: Hello+World
     2: ello+
     3: Hello+
     4: World
     5: Worl
     6: Hello+World
     7: dlroW+olleH
End data section to test/regress/rt-1.01.05-0.expect[1]