2016-12-30 12:15:08 +01:00
|
|
|
require_relative "../helper"
|
|
|
|
|
|
|
|
class TestZeroCode < MiniTest::Test
|
|
|
|
|
|
|
|
def test_string_put
|
|
|
|
machine = Register.machine.boot
|
2016-12-30 20:00:18 +01:00
|
|
|
space = Parfait.object_space
|
|
|
|
space.each_type do | type |
|
|
|
|
type.method_names.each do |method|
|
|
|
|
type.remove_method(method)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
assert_equal 0 , space.collect_methods.length
|
|
|
|
machine.collect_space
|
2016-12-30 12:15:08 +01:00
|
|
|
machine.translate_arm
|
|
|
|
# writer = Elf::ObjectWriter.new
|
|
|
|
# writer.save "test/zero.o"
|
|
|
|
end
|
|
|
|
end
|