Skip to content

Commit 12144d6

Browse files
committed
add test for presence/absence of == Macro ==> step
1 parent c7c95d3 commit 12144d6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

main_test.txtar

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@ stderr 'called fact 5'
3737
stderr 'called fact 1'
3838
stderr 'I] All done'
3939

40-
# fib_50.gr
40+
# macro output (there is a macro in sample_test.gr, it should show that stage with -parse)
41+
grol -parse sample_test.gr
42+
!stderr 'Errors'
43+
stdout '== Macro ==>'
44+
45+
# no macro stage when no macro in the file:
46+
grol -parse fib_50.gr
47+
!stderr 'Errors'
48+
!stdout '== Macro ==>'
49+
stdout '12586269025\n'
50+
51+
# fib_50.gr (redoing, checking exact match of output)
4152
grol fib_50.gr
4253
!stderr 'Errors'
4354
cmp stdout fib50_stdout

0 commit comments

Comments
 (0)