Skip to content

Commit 6d0ae3a

Browse files
committed
Add test for LTRIM
Also remove deprecation warning un runner
1 parent 26b9aa2 commit 6d0ae3a

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

tests/runtime/cases/ltrim_test.bas

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#include "lib/tst_framework.bas"
2+
3+
INIT("Test LTRIM$()")
4+
5+
#include <string.bas>
6+
#include <alloc.bas>
7+
8+
print memavail; chr$(13); maxavail
9+
10+
print "'"; ltrim("", "a"); "'"
11+
print "'"; ltrim("hello world", ""); "'"
12+
print "'"; ltrim("hello world", "he"); "'"
13+
print "'"; ltrim("hehello world", "he"); "'"
14+
print "'"; ltrim("hehehe", "he"); "'"
15+
16+
print memavail; chr$(13); maxavail
17+
18+
FINISH
19+
6.75 KB
Binary file not shown.

tests/runtime/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
RUN=$(basename -s .bas $1)
55
rm -f "$RUN.tzx"
66
killall fuse 2>/dev/null
7-
../../zxb.py -TaB $1 --debug-memory || exit 1
7+
../../zxbc.py -TaB $1 --debug-memory || exit 1
88
fuse --auto-load --speed=19000 "$RUN.tzx" &
99

0 commit comments

Comments
 (0)