Permalink
Browse files

Malloc#write now accepts Malloc object as parameter

  • Loading branch information...
1 parent 86dbb7b commit c7ba94681f0fc3474e6d96a893b8cb73ee41dd85 @wedesoft committed Oct 18, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/tc_malloc.rb
View
@@ -51,6 +51,7 @@ def test_read_write
assert_equal 'jkldef', m.read( 6 )
assert_raise( RuntimeError ) { m.read 7 }
assert_raise( RuntimeError ) { m.write 'abcdefg' }
+ assert_raise( RuntimeError ) { m.write Malloc.new( 7 ) }
end
def test_plus

0 comments on commit c7ba946

Please sign in to comment.