Skip to content

Commit 0f3605e

Browse files
committed
Add test LEI16
1 parent 90276c7 commit 0f3605e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
REM Byte < comparison
1+
#include "lib/tst_framework.bas"
22

33
DIM i AS Integer = -32768
44
DIM j AS Integer
55
DIM ii, jj AS Long
66
DIM Counter as ULong = 0
77

8-
PRINT "Testing (integer) <= (integer) [LEi16]"
8+
INIT("Testing (integer) <= (integer) [LEi16]")
99

1010
DO
1111
j = -32768
@@ -14,9 +14,8 @@ DO
1414
DO
1515
jj = j
1616
If (i <= j) XOR (ii <= jj) THEN
17-
PRINT i; "<="; j; " = "; (i <= j); " "; PAPER 2; INK 7; FLASH 1; " ERROR "; PAPER 8; FLASH 0; TAB 31
18-
PRINT Counter
19-
STOP
17+
PRINT i; "<="; j; " = "; (i <= j); " "; Counter
18+
REPORT_FAIL
2019
End If
2120

2221
'print at 5, 0; Counter; " "; i; " "; j; TAB 16
@@ -28,8 +27,9 @@ DO
2827
LOOP UNTIL i = -32768
2928

3029
IF Counter <> 65536 THEN
31-
PRINT "Iterations: "; Counter; " "; PAPER 2; INK 7; FLASH 1; " ERROR "; PAPER 8; FLASH 0; TAB 31
30+
PRINT "Iterations: "; Counter; " "
31+
REPORT_FAIL
3232
ELSE
33-
PRINT PAPER 4; INK 7; " SUCCESS "; PAPER 8; TAB 31
33+
REPORT_OK
3434
END IF
3535

6.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)