source: git/Tst/Short/bug_tr359.tst @ 564136

spielwiese
Last change on this file since 564136 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 
1LIB "tst.lib";
2tst_init();
3
4// testing matrix dimensions
5ring r=0,x,dp;
6matrix(8,1,1);   
7print(matrix(8,3,4));
8matrix A = 8;
9A;
10matrix(A,1,1);   // everythin if fine up to here but ...
11//... the following the non-postive second and third args should be rejected
12matrix(A,1,0);    // already this bug may lead to crash if used as input 
13matrix B = _;
14B;                // what is B ?
15size(B);
16ncols(B);
17nrows(B);   // mismatch with size(B)
18matrix(A,0,1);
19matrix(A,-1,1);
20matrix(1,-1,1);                       //  compare with the beginning
21
22tst_status(1);$
Note: See TracBrowser for help on using the repository browser.