fix tests after register allocation work

This commit is contained in:
Torsten Ruger
2014-05-24 16:52:54 +03:00
parent 4a67504a61
commit 1e326e00b9
6 changed files with 15 additions and 20 deletions

View File

@ -65,7 +65,7 @@ class TestSmallProg < MiniTest::Test
assembly = writer.text
# use this for getting the bytes to compare to :
# puts assembly
writer.save("#{name}_test.o")
#writer.save("#{name}_test.o")
assembly.text.bytes.each_with_index do |byte , index|
is = @should[index]
assert_equal byte , is , "@#{index.to_s(16)} #{byte.to_s(16)} != #{is.to_s(16)}"