diff options
Diffstat (limited to 'Library/Formula/dasm.rb')
| -rw-r--r-- | Library/Formula/dasm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/dasm.rb b/Library/Formula/dasm.rb index 83c84ece6..d2d960fbc 100644 --- a/Library/Formula/dasm.rb +++ b/Library/Formula/dasm.rb @@ -27,7 +27,7 @@ class Dasm < Formula EOS system bin/"dasm", path - code = File.open(testpath/"a.out", "rb") { |f| f.read.unpack("C*") } + code = (testpath/"a.out").binread.unpack("C*") assert_equal [0x00, 0xc0, 0x4c, 0xe2, 0xfc], code end end |
