Sha256: 6afa19e8d58bdb2884bc679e3a5708f21e34708815b4acf98e3f3abb31b44998
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
require File.dirname(__FILE__) + '/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 | test/function_pointers_classes_test.rb |