Skip to content

Commit a87e629

Browse files
committed
Testing: Add tests for new MachO.open
Ensure that MachO.open raises all expected exceptions.
1 parent 94e64ec commit a87e629

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_open.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
class MachOOpenTest < Minitest::Test
66
include Helpers
77

8+
def test_nonexistent_file
9+
assert_raises ArgumentError do
10+
MachO.open("/this/is/a/file/that/cannot/possibly/exist")
11+
end
12+
end
13+
814
def test_open
915
file = MachO.open("test/bin/libhello.dylib")
1016

0 commit comments

Comments
 (0)