fieker-DuValspielwiese
Last change
on this file since e74bb4 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:
730 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | ring r; |
---|
3 | link l="ssi:w example.ssi"; // type=ssi, mode=overwrite |
---|
4 | l; |
---|
5 | ideal i=x2,y2,z2; |
---|
6 | write (l,1, i, "hello world");// write three expressions |
---|
7 | write(l,4); // append one more expression |
---|
8 | close(l); // link is closed |
---|
9 | // open the file for reading now |
---|
10 | read(l); // only first expression is read |
---|
11 | kill r; // no basering active now |
---|
12 | def i = read(l); // second expression |
---|
13 | // notice that current ring was set, the name was assigned |
---|
14 | // automatically |
---|
15 | listvar(ring); |
---|
16 | def s = read(l); // third expression |
---|
17 | listvar(); |
---|
18 | close(l); // link is closed |
---|
19 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.