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 6e45f1e commit 57062bcCopy full SHA for 57062bc
2 files changed
tests/runtime/cases/rtrim_test.bas
@@ -0,0 +1,21 @@
1
+#include "lib/tst_framework.bas"
2
+
3
+INIT("Test RTRIM$()")
4
5
+#include <string.bas>
6
+#include <alloc.bas>
7
8
+print memavail; chr$(13); maxavail
9
10
+print "'"; rtrim("", "a"); "'"
11
+print "'"; rtrim("hello world", ""); "'"
12
+print "'"; rtrim("hello world", "ld"); "'"
13
+print "'"; rtrim("hello worldld", "ld"); "'"
14
+print "'"; rtrim("hehehe", "he"); "'"
15
+print "'"; rtrim("hhh", "h"); "'"
16
+print "'"; rtrim("ahehehe", "he"); "'"
17
18
19
20
+FINISH
21
tests/runtime/expected/rtrim_test.tzx.scr
6.75 KB
0 commit comments