change result to hex because that is what objectdump disasemles
This commit is contained in:
parent
5bd4be313c
commit
1564f9b439
@ -12,7 +12,7 @@ class TestAsm < MiniTest::Test
|
|||||||
assert_equal :mov , m.opcode
|
assert_equal :mov , m.opcode
|
||||||
binary = @generator.assemble
|
binary = @generator.assemble
|
||||||
assert_equal 4 , binary.length
|
assert_equal 4 , binary.length
|
||||||
should = [5,0,160,227]
|
should = [0x05,0x00,0xa0,0xe3]
|
||||||
index = 0
|
index = 0
|
||||||
binary.each_byte do |byte |
|
binary.each_byte do |byte |
|
||||||
assert_equal byte , should[index]
|
assert_equal byte , should[index]
|
||||||
|
Loading…
Reference in New Issue
Block a user