diff options
| author | Adam Vandenberg | 2014-07-27 16:23:54 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-07-27 16:23:54 -0700 |
| commit | a483bcbc929c4e2172906673288139c55bd591c8 (patch) | |
| tree | ef19fa936b1031d4e572799f6267f8f08bd1444d /Library/Formula/z80dasm.rb | |
| parent | 38e99436dd27902250c08c69d22ac5b0d057f2cc (diff) | |
| download | homebrew-a483bcbc929c4e2172906673288139c55bd591c8.tar.bz2 | |
use binwrite in tests
Diffstat (limited to 'Library/Formula/z80dasm.rb')
| -rw-r--r-- | Library/Formula/z80dasm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/z80dasm.rb b/Library/Formula/z80dasm.rb index 3721ca3aa..b08455260 100644 --- a/Library/Formula/z80dasm.rb +++ b/Library/Formula/z80dasm.rb @@ -12,7 +12,7 @@ class Z80dasm < Formula test do path = testpath/"a.bin" - path.open("wb") { |f| f.write [0xcd, 0x34, 0x12].pack("c*") } + path.binwrite [0xcd, 0x34, 0x12].pack("c*") output = `#{bin}/z80dasm #{path}`.strip assert output.include?("call 01234h") |
