We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab7810 commit b42eae7Copy full SHA for b42eae7
2 files changed
tests/runtime/testprint42.bas tests/runtime/cases/print42.bastests/runtime/testprint42.bas renamed to tests/runtime/cases/print42.bas
@@ -2,21 +2,21 @@
2
' Test for print42 routine and memory leaks
3
' (compile with --debug-memory)
4
5
+#include <alloc.bas>
6
#include <print42.bas>
7
+#include "lib/tst_framework.bas"
8
9
+INIT(PAPER 1; INK 7; "Test PRINT42")
10
11
DIM n,x,y as uInteger
-CLS
12
+
13
+RANDOMIZE 3769 ' Fixed (prime) seed to get replicable results
14
15
FOR n=1 to 10000
- y=rnd*23
16
+ y=1+rnd*22
17
x=rnd*41
18
printat42(y, x)
19
print42("ABCDEFGHIJKLMNOPQRSTUVWXYZ"(n MOD 26 TO n MOD 26))
- print at 23,0;n;" y:";y;" x:";x;" L:";n mod 26; " ";
20
+ print at 23,0;n;" y:";y;" x:";x;" L:";n mod 26; " "; memavail; " ";
21
NEXT n
-
-pause 0
-END
22
+FINISH
tests/runtime/expected/print42.tzx.scr
6.75 KB
0 commit comments