test/test_coderunner.rb in coderunner-0.14.24 vs test/test_coderunner.rb in coderunner-0.15.0
- old
+ new
@@ -201,12 +201,19 @@
assert_equal(21, @runner3.max_id)
#eputs "\ntesting set_start_id complete"
@runner3 = CodeRunner.new(tfolder2).update
assert_nothing_raised{@mrunner = CodeRunner::Merged.new(@runner, @runner3)}
@mrunner.print_out(0)
+ #STDIN.gets
assert_equal(@runner.run_list.size + 1, @mrunner.run_list.size)
@mrunner2 = @runner.merge(@runner3)
assert_equal(@mrunner2.run_list.keys, @mrunner.run_list.keys)
+ assert_nothing_raised{@mrunner.add_runner(@runner)}
+ assert_equal(CodeRunner::Run::Merged, @mrunner.run_list[[2, 6]].class)
+ assert_equal(6, @mrunner.run_list[[2, 6]].run.id)
+ assert_system("#$coderunner_command st -Y #{tfolder} -Y #{tfolder2}")
+ assert_raise(RuntimeError){@mrunner.submit}
+ #STDIN.gets
FileUtils.rm_r tfolder2
end
def test_status_with_component
CodeRunner.status(Y: tfolder, h: :c)