fieker-DuValspielwiese
Last change
on this file since 85bcd6 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:
376 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | // The powers of 2: |
---|
3 | int n; |
---|
4 | for (n = 2; n <= 128; n = n * 2) |
---|
5 | {"n = " + string (n);} |
---|
6 | // The powers of 2 in a nice format |
---|
7 | int j; |
---|
8 | string space = ""; |
---|
9 | for (n = 2; n <= 128; n = n * 2) |
---|
10 | { |
---|
11 | space = ""; |
---|
12 | for (j = 1; j <= 5 - size (string (n)); j = j+1) |
---|
13 | { space = space + " "; } |
---|
14 | "n =" + space + string (n); |
---|
15 | } |
---|
16 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.