Skip to content

Commit 2515cec

Browse files
committed
Update runtime test framework
1 parent 06ba6a5 commit 2515cec

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/runtime/cases/lib/tst_framework.bas

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919
#define REPORT_FAIL \
2020
SHOW_ERROR: FINISH
2121

22+
#define ASSERT(val) \
23+
IF NOT VAL THEN REPORT_FAIL
24+
25+
#define SHOW_RESULT(IS_OK) \
26+
IF IS_OK THEN \
27+
SHOW_OK \
28+
ELSE \
29+
SHOW_ERROR \
30+
END IF
31+
32+
#define SHOW_RESULTLN(IS_OK) \
33+
SHOW_RESULT(IS_OK): PRINT
2234

2335
#define INIT(msg) \
2436
BORDER 0: PAPER 0: INK 7: CLS \

0 commit comments

Comments
 (0)