diff options
| author | Mike Naberezny | 2014-02-01 09:46:26 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-02 09:12:05 +0000 |
| commit | 25c4c01a8a872b38a806db19d4f04bdfe699045e (patch) | |
| tree | 9aa63bc634bd1f0e0a4b92fff7433beb5a7b26a0 /Library/Formula | |
| parent | 8089ab7efdf7c6db4414c765257592b73995450b (diff) | |
| download | homebrew-25c4c01a8a872b38a806db19d4f04bdfe699045e.tar.bz2 | |
z80dasm: improve test by disassembling a small file
Closes #26333.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/z80dasm.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/z80dasm.rb b/Library/Formula/z80dasm.rb index a84b993d8..3721ca3aa 100644 --- a/Library/Formula/z80dasm.rb +++ b/Library/Formula/z80dasm.rb @@ -11,6 +11,11 @@ class Z80dasm < Formula end test do - system bin/'z80dasm', '-V' + path = testpath/"a.bin" + path.open("wb") { |f| f.write [0xcd, 0x34, 0x12].pack("c*") } + + output = `#{bin}/z80dasm #{path}`.strip + assert output.include?("call 01234h") + assert_equal 0, $?.exitstatus end end |
