Lots of preloading for tests

so many relied (implicitly( on some builtin function
after all can't do much in ruby without calling
Now all those dependencies are explicit
Small risc changes come because the macro version has a return label and unreachable label
This commit is contained in:
2019-09-13 14:07:12 +03:00
parent c9d7539479
commit 12b29285d7
52 changed files with 201 additions and 164 deletions

View File

@ -16,6 +16,7 @@ module Mains
tests << method_name
input = File.read(file_name)
self.send(:define_method, method_name ) do
@preload = "all"
ticks = run_input(input)
#puts "Ticks for #{method_name}=#{ticks}"
assert_equal stdout , @interpreter.stdout , "Wrong stdout #{name}"

View File

@ -35,6 +35,7 @@ module Mains
end
def setup
@preload = "Word.put"
@string_input = whole_input
super
end