spielwiese
Last change
on this file since 85d15b1 was
46976a6,
checked in by Olaf Bachmann <obachman@…>, 26 years ago
|
* added status check to regress.cmd
* added tst_status(1); call to each tst file, just before quit
git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
375 bytes
|
Line | |
---|
1 | // The powers of 2: |
---|
2 | int n; |
---|
3 | for (n = 2; n <= 128; n = n * 2) |
---|
4 | {"n = " + string (n);} |
---|
5 | // The powers of 2 in a nice format |
---|
6 | int j; |
---|
7 | string space = ""; |
---|
8 | for (n = 2; n <= 128; n = n * 2) |
---|
9 | { |
---|
10 | space = ""; |
---|
11 | for (j = 1; j <= 5 - size (string (n)); j = j+1) |
---|
12 | { space = space + " "; } |
---|
13 | "n =" + space + string (n); |
---|
14 | } |
---|
15 | kill n,j; |
---|
16 | LIB "tst.lib";tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.