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

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

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

set test eval-4
set prog_output "^x = 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

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

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

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

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

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

set test eval-12
set prog_output "^y = 1"
do_test eval-12.m

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

set test eval-14
set prog_output "^y = 1"
do_test eval-14.m

