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+ #include "lib/tst_framework.bas"
22
33DIM i AS Integer = - 32768
44DIM j AS Integer
55DIM ii, jj AS Long
66DIM Counter as ULong = 0
77
8- PRINT " Testing (integer) <= (integer) [LEi16]"
8+ INIT( "Testing (integer) <= (integer) [LEi16]" )
99
1010DO
1111 j = - 32768
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
2827LOOP UNTIL i = - 32768
2928
3029IF 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
3232ELSE
33- PRINT PAPER 4 ; INK 7 ; " SUCCESS " ; PAPER 8 ; TAB 31
33+ REPORT_OK
3434END IF
3535
You can’t perform that action at this time.
0 commit comments