File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- REM Byte < comparison
1+
2+ #include "tst_framework.bas"
3+
4+ INIT( "Testing (byte) >= (byte) [GEi8]" )
25
36DIM i AS Byte = - 128
47DIM j AS Byte
58DIM ii, jj AS Integer
69DIM Counter as ULong = 0
710
8- PRINT " Testing (byte) >= (byte) [GEi8]"
9-
1011DO
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
2627LOOP UNTIL i = - 128
2728
2829IF 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
3032ELSE
31- PRINT PAPER 4 ; INK 7 ; " SUCCESS " ; PAPER 8 ; TAB 31
33+ REPORT_OK
3234END IF
3335
You can’t perform that action at this time.
0 commit comments