fieker-DuValspielwiese
Last change
on this file since 352a84b was
75f460,
checked in by Hans Schoenemann <hannes@…>, 9 years ago
|
format
|
-
Property mode set to
100644
|
File size:
553 bytes
|
Line | |
---|
1 | LIB "tst.lib"; |
---|
2 | tst_init(); |
---|
3 | |
---|
4 | // testing matrix dimensions |
---|
5 | ring r=0,x,dp; |
---|
6 | matrix(8,1,1); |
---|
7 | print(matrix(8,3,4)); |
---|
8 | matrix A = 8; |
---|
9 | A; |
---|
10 | matrix(A,1,1); // everythin if fine up to here but ... |
---|
11 | //... the following the non-postive second and third args should be rejected |
---|
12 | matrix(A,1,0); // already this bug may lead to crash if used as input |
---|
13 | matrix B = _; |
---|
14 | B; // what is B ? |
---|
15 | size(B); |
---|
16 | ncols(B); |
---|
17 | nrows(B); // mismatch with size(B) |
---|
18 | matrix(A,0,1); |
---|
19 | matrix(A,-1,1); |
---|
20 | matrix(1,-1,1); // compare with the beginning |
---|
21 | |
---|
22 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.