-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.src
executable file
·52 lines (47 loc) · 1.46 KB
/
test.src
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'##########################################################################
'
' test utils
'
'##########################################################################
'$include:'bhtdef.inc'
'$include:'const.inc'
'$include:'input.inc'
public TestCnt%
public TestSuccessCnt%
public TestFailureCnt%
'--------------------------------------------------------------------------
' test finish
'--------------------------------------------------------------------------
sub Test.Finish
print "---------------------"
print "Total:"+str$(TestCnt%)
print "Succ :"+str$(TestSuccessCnt%)+",";
print "Fail :"+str$(TestFailureCnt%)
Input.InputAnyKey
end sub
'--------------------------------------------------------------------------
' test start
'--------------------------------------------------------------------------
sub Test.Start
screen Lc.SCR.KANJI,Lc.WAT.NORMAL
TestCnt%=0
TestSuccessCnt%=0
TestFailureCnt%=0
end sub
'--------------------------------------------------------------------------
' test util : ok
'--------------------------------------------------------------------------
sub ok(cond, mess$)
screen Lc.SCR.KANJI,Lc.WAT.NORMAL
if cond then
print "OK:";
print mess$
TestSuccessCnt%=TestSuccessCnt%+1
else
print "ERR:";
print mess$
TestFailureCnt%=TestFailureCnt%+1
Input.InputAnyKey
end if
TestCnt%=TestCnt%+1
end sub