Sha256: 73f940c1c389f988cf3a464dc29334e0d694b87e3941e6f26a010854efce006e
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'test_helper' context "Function pointers into class methods" do def setup if !defined?(@@function_pointers_class) super @@function_pointers_class = true Extension.new "function_pointers_class" do |e| e.sources full_dir("headers/function_pointers_class.h") node = e.namespace "function_pointers_class" end require 'function_pointers_class' end end specify "works" do t = PointerTest.new t.set_callback do |i| 42 end t.call_callback(12).should == 42 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbplusplus-0.9.1 | test/function_pointers_classes_test.rb |