Skip to content

Commit

Permalink
test: add PRINT COLOR test
Browse files Browse the repository at this point in the history
  • Loading branch information
boriel committed Oct 7, 2022
1 parent 9599ef0 commit ea28070
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/runtime/cases/drawing_primitives.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include "lib/tst_framework.bas"

INIT("Testing PRINT color")

Declare sub CenterText (ByVal Row as ubyte, ByVal Text as string)

Ink 6
Paper 1
Print "x";

Ink 7
Paper 0
Text ("Hello")
FINISH

Sub Text (ByVal Txt as string)
PLOT 10, 10
DRAW 20, 20
CIRCLE 100, 100, 20
DRAW 30, 30, 30
End sub
18 changes: 18 additions & 0 deletions tests/runtime/cases/print_color.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "lib/tst_framework.bas"

INIT("Testing PRINT color")

Declare sub CenterText (ByVal Row as ubyte, ByVal Text as string)

Ink 6
Paper 1
Print "x";

Ink 7
Paper 0
Text ("Hello")
FINISH

Sub Text (ByVal Txt as string)
PRINT Txt;
End sub
Binary file added tests/runtime/expected/drawing_primitives.tzx.scr
Binary file not shown.
Binary file added tests/runtime/expected/print_color.tzx.scr
Binary file not shown.

0 comments on commit ea28070

Please sign in to comment.