Skip to content

Commit 31a4c62

Browse files
committed
Update test library
Now messages (error, ok) can be used several times without ending the program.
1 parent 6aa2c03 commit 31a4c62

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

tests/runtime/cases/lib/tst_framework.bas

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
END ASM
88

99

10-
#define REPORT_OK \
11-
PRINT PAPER 4; INK 0; " OK "; PAPER 8; TAB 31;: FINISH
10+
#define SHOW_OK \
11+
PRINT PAPER 4; INK 0; " OK "; PAPER 8; TAB 31;
12+
13+
#define SHOW_ERROR \
14+
PRINT PAPER 2; INK 0; FLASH 1; " ERROR "; PAPER 8; FLASH 0; TAB 31;
1215

16+
#define REPORT_OK \
17+
SHOW_OK: FINISH
1318

1419
#define REPORT_FAIL \
15-
PRINT PAPER 2; INK 0; FLASH 1; " ERROR "; PAPER 8; FLASH 0; TAB 31;: FINISH
20+
SHOW_ERROR: FINISH
1621

1722

1823
#define INIT(msg) \

0 commit comments

Comments
 (0)