summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLars Kanis <lars@greiz-reinsdorf.de>2020-08-31 14:04:38 +0200
committerLars Kanis <lars@greiz-reinsdorf.de>2020-08-31 14:04:38 +0200
commit10ea06e8c3c8d0b36f6fea1cf9d4e47980e22ff1 (patch)
tree85c3298c845e6461849f5873465882d04cc1be2a /spec
parent42a9bbd69b7dffbae1c57a4c083382af723fa1f3 (diff)
downloadffi-10ea06e8c3c8d0b36f6fea1cf9d4e47980e22ff1.tar.gz
Correct callback name in spec
Diffstat (limited to 'spec')
-rw-r--r--spec/ffi/callback_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ffi/callback_spec.rb b/spec/ffi/callback_spec.rb
index b4fede4..58e5c81 100644
--- a/spec/ffi/callback_spec.rb
+++ b/spec/ffi/callback_spec.rb
@@ -58,7 +58,7 @@ module CallbackSpecs
callback :cbIrV, [ :int ], :void
callback :cbLrV, [ :long ], :void
callback :cbULrV, [ :ulong ], :void
- callback :cbLrV, [ :long_long ], :void
+ callback :cbLLrV, [ :long_long ], :void
callback :cbVrT, [ ], S8F32S32.by_value
callback :cbTrV, [ S8F32S32.by_value ], :void
callback :cbYrV, [ S8F32S32.ptr ], :void
@@ -446,6 +446,7 @@ module CallbackSpecs
attach_function :testCallbackAsArgument_2, :testArgumentClosure, [ :cb_with_cb_argument, :int ], :int
end).to be_an_instance_of FFI::Function
end
+
it 'should be able to use the callback argument' do
module LibTest
extend FFI::Library
@@ -469,6 +470,7 @@ module CallbackSpecs
expect(callback_arg_called).to be true
expect(callback_with_callback_arg_called).to be true
end
+
it 'function returns callable object' do
module LibTest
extend FFI::Library