test/main.rb in main-3.0.3 vs test/main.rb in main-4.0.0

- old
+ new

@@ -28,10 +28,12 @@ $VERBOSE=nil ARGV.replace argv ENV.clear env.each{|k,v| ENV[k.to_s]=v.to_s} + Main.push_ios! + test = self factory = Main.factory(&block) program = factory.build(argv, env) @@ -56,10 +58,12 @@ main.run test.status ||= main.exit_status + Main.pop_ios! + main end # basic test @@ -597,11 +601,11 @@ def run puts 42 end } } - assert test(?e, sout.path) - assert IO.read(sout.path) == "42\n" + assert test(?e, sout.path), 'sout exists' + assert IO.read(sout.path) == "42\n", 'sout has correct output' end def test_0370 m = nil assert_nothing_raised{ m = main{