Skip to content

Commit 9f06bd5

Browse files
committed
Add tests
1 parent e3511f0 commit 9f06bd5

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

tests/functional/due_inc_main.bas

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
' Main.bas
2+
3+
#include "due_par.bas"
4+
5+
Test(5)
6+
7+
pause 0
8+

tests/functional/due_par.bas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SUB test(code as Ubyte)
2+
k=in(12234
3+
END SUB
4+

tests/functional/test_errmsg.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,8 @@ llb.bas:3: error: Undeclared function "f$"
163163
>>> process_file('opt2_include_unused.bas')
164164
func0.bas:5: warning: Using default implicit type 'float' for 'f'
165165
func0.bas:4: warning: Function 'f' is never called and has been ignored
166-
166+
>>> process_file('due_par.bas')
167+
due_par.bas:2: error: Syntax error. Unexpected end of line
168+
>>> process_file('due_inc_main.bas')
169+
due_par.bas:2: error: Syntax error. Unexpected end of line
170+
due_par.bas:5: error: Syntax error. Unexpected end of file

0 commit comments

Comments
 (0)