set test eval-1
set prog_output "x = 1"
do_test eval-1.m

set test eval-2
set prog_output "ans = 1"
do_test eval-2.m

set test eval-3
set prog_output "^$"
do_test eval-3.m

set test eval-4
set prog_output "x = 1\nans = 1"
do_test eval-4.m

set test eval-5
set prog_output "flipud = 2"
do_test eval-5.m

set test eval-6
set prog_output "ans = 2"
do_test eval-6.m
