aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/z80asm.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/z80asm.rb b/Library/Formula/z80asm.rb
index 12d63c843..f7e705f88 100644
--- a/Library/Formula/z80asm.rb
+++ b/Library/Formula/z80asm.rb
@@ -13,6 +13,11 @@ class Z80asm < Formula
end
test do
- system bin/'z80asm', '-V'
+ path = testpath/"a.asm"
+ path.write "call 1234h\n"
+
+ system bin/"z80asm", path
+ code = File.open(testpath/"a.bin", "rb") { |f| f.read.unpack("C*") }
+ assert_equal [0xcd, 0x34, 0x12], code
end
end