Skip to content

Commit 53d2b45

Browse files
committed
Update GEi8 test
1 parent 89377d1 commit 53d2b45

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

tests/runtime/gei8.bas

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
REM Byte < comparison
1+
2+
#include "tst_framework.bas"
3+
4+
INIT("Testing (byte) >= (byte) [GEi8]")
25

36
DIM i AS Byte = -128
47
DIM j AS Byte
58
DIM ii, jj AS Integer
69
DIM Counter as ULong = 0
710

8-
PRINT "Testing (byte) >= (byte) [GEi8]"
9-
1011
DO
1112
j = -128
1213
ii = i
1314

1415
DO
1516
jj = j
1617
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-
STOP
18+
PRINT i; ">="; j; " = "; (i >= j); " ";
19+
REPORT_FAIL
1920
End If
2021

2122
Counter = Counter + 1
@@ -26,8 +27,9 @@ DO
2627
LOOP UNTIL i = -128
2728

2829
IF Counter <> 65536 THEN
29-
PRINT "Iterations: "; Counter; " "; PAPER 2; INK 7; FLASH 1; " ERROR "; PAPER 8; FLASH 0; TAB 31
30+
PRINT "Iterations: "; Counter; " ";
31+
REPORT_FAIL
3032
ELSE
31-
PRINT PAPER 4; INK 7; " SUCCESS "; PAPER 8; TAB 31
33+
REPORT_OK
3234
END IF
3335

tests/runtime/gei8.tzx.scr

6.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)