Sha256: 63fe6d9e8da8ddb42ddfe225399cab635b8129359a9d9e0fadcb67eb6cc17161
Contents?: true
Size: 900 Bytes
Versions: 7
Compression:
Stored size: 900 Bytes
Contents
require 'test_helper' describe "Properly build known required to_ruby and from_ruby methods" do specify "should build for const & types as needed" do Extension.new "to_from_ruby" do |e| e.sources full_dir("headers/to_from_ruby.h"), :include_paths => full_dir("headers"), :include_source_files => full_dir("headers/to_from_ruby_source.cpp") e.namespace "to_from_ruby" end require 'to_from_ruby' needs_to_ruby(4).value.should == 4 some_other_method(7).value.should == 7 c = WrappedClass.new c.get_my_type(17).value.should == 17 using_const_string("super_long").should == 10 # Running this gets a glibc double free error. Not sure if this is properly # fixable outside of implementing call and return policies in Rice. # c.overload_0.class.should == MyType # c.overload_0.class.should == c.overload_1(0).class end end
Version data entries
7 entries across 7 versions & 1 rubygems