Skip to content

Commit 4de541b

Browse files
committed
Add runtime tests for READ/DATA coercion
1 parent 2925de1 commit 4de541b

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
REM Type coerding (reduction) in read DATA
1+
REM Type coercion (reduction) in read DATA
2+
3+
4+
#include "lib/tst_framework.bas"
5+
INIT("Testing READ, DATA coercing")
6+
27

38
DIM i8 as Byte
49
DIM u8 as UByte
@@ -40,4 +45,4 @@ PRINT flt
4045

4146
DATA -1.5
4247

43-
48+
REPORT_OK
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
REM Type promoting in read DATA
1+
REM Type coercion (promotion) in read DATA
2+
3+
#include "lib/tst_framework.bas"
4+
INIT("Testing READ, DATA coercing")
5+
26

37
DIM i8 as Byte
48
DIM u8 as UByte
@@ -40,4 +44,4 @@ PRINT flt
4044

4145
DATA -1
4246

43-
47+
REPORT_OK
6.75 KB
Binary file not shown.
6.75 KB
Binary file not shown.

0 commit comments

Comments
 (0)