File: testsuite_printat_include.kbs

package info (click to toggle)
basic256 2.0.99.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,888 kB
  • sloc: cpp: 17,185; yacc: 4,025; lex: 1,466; java: 1,091; sh: 39; xml: 33; makefile: 20
file content (27 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# testsuite_printat_include section for BASIC256

# Modification History
# date		programmer	description
# 20210713	j.m.reneau	original coding

currentsuite = "printat"

# test console printat statements

cls
cx = 10
cy = 5
for a = 0 to pi*2 step .1
	printat cx + cx * cos(a), cy + cy * sin(a) , "@"
next a

printat 0, cy*2
call q("Did the program print a circle of '@' signs?")

printat cx,cy-1,'+'
printat cx-1,cy,"+++"
printat cx,cy+1,'+'

printat 0, cy*2+2
call q("Did the program print a + in the middle of the circle?")