Skip to content

Commit ea28070

Browse files
committed
test: add PRINT COLOR test
1 parent 9599ef0 commit ea28070

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "lib/tst_framework.bas"
2+
3+
INIT("Testing PRINT color")
4+
5+
Declare sub CenterText (ByVal Row as ubyte, ByVal Text as string)
6+
7+
Ink 6
8+
Paper 1
9+
Print "x";
10+
11+
Ink 7
12+
Paper 0
13+
Text ("Hello")
14+
FINISH
15+
16+
Sub Text (ByVal Txt as string)
17+
PLOT 10, 10
18+
DRAW 20, 20
19+
CIRCLE 100, 100, 20
20+
DRAW 30, 30, 30
21+
End sub

tests/runtime/cases/print_color.bas

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include "lib/tst_framework.bas"
2+
3+
INIT("Testing PRINT color")
4+
5+
Declare sub CenterText (ByVal Row as ubyte, ByVal Text as string)
6+
7+
Ink 6
8+
Paper 1
9+
Print "x";
10+
11+
Ink 7
12+
Paper 0
13+
Text ("Hello")
14+
FINISH
15+
16+
Sub Text (ByVal Txt as string)
17+
PRINT Txt;
18+
End sub
Binary file not shown.
6.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)