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 7c86925 commit b2a6c5aCopy full SHA for b2a6c5a
tests/runtime/cases/maxavail.bas
@@ -0,0 +1,34 @@
1
+#include "lib/tst_framework.bas"
2
+
3
+INIT("Testing MEMAVAIL, MAXAVAIL")
4
5
+#include <alloc.bas>
6
+DIM hasError as Ubyte = 0
7
8
+SUB showResult()
9
+ PRINT TAB 12;
10
+ IF hasError THEN
11
+ hasError = 0
12
+ SHOW_ERROR
13
+ ELSE
14
+ SHOW_OK
15
+ END IF
16
+ PRINT
17
+END SUB
18
19
20
+PRINT maxavail(); " "; memavail();
21
+LET hasError = maxavail() <> 4764 or memavail() <> 4764
22
+showResult()
23
24
+a$ = "HELLO WORLD"
25
26
+LET hasError = maxavail() <> 4749 or memavail() <> 4749
27
28
29
+a$ = a$ + a$
30
31
+LET hasError = maxavail() <> 4723 or memavail() <> 4738
32
33
34
+FINISH
tests/runtime/expected/maxavail.tzx.scr
6.75 KB
tests/runtime/maxavail.bas
0 commit comments