Skip to content

Commit 1ab7810

Browse files
committed
Add test GEI16
1 parent eddd7b6 commit 1ab7810

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"
2+
INIT("Testing (integer) >= (integer) [GEi16]")
23

34
DIM i AS Integer = -32768
45
DIM j AS Integer
56
DIM ii, jj AS Long
67
DIM Counter as ULong = 0
78

8-
PRINT "Testing (integer) >= (integer) [GEi16]"
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)