spielwiese
Last change
on this file since 951db29 was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
294 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | string s = "one-word"; |
---|
3 | s[2,6]; // a substring starting at the second char |
---|
4 | size(_); |
---|
5 | intvec v = 2,6; |
---|
6 | s[v]; // the second and the sixth char |
---|
7 | string st = s[v]; // stick together by an assignment |
---|
8 | st; |
---|
9 | size(_); |
---|
10 | v = 2,6,8; |
---|
11 | s[v]; |
---|
12 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.