spielwiese
Last change
on this file since 0054e7 was
de71f84,
checked in by Hans Schoenemann <hannes@…>, 12 years ago
|
fix tr. 359
git-svn-id: file:///usr/local/Singular/svn/trunk@14415 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
559 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.