better testing for small assembly (for coming changes)

This commit is contained in:
Torsten Ruger
2014-05-20 10:29:08 +03:00
parent 0fa47d204e
commit fcf76eed34
4 changed files with 24 additions and 10 deletions

View File

@ -14,6 +14,12 @@ module Elf
Elf::Constants::SHF_WRITE | Elf::Constants::SHF_ALLOC | Elf::Constants::SHF_EXECINSTR
end
def length
@text.length
end
def to_s
"[" + @text.bytes.join(",") + "]"
end
def alignment
4
end