Sha256: a5159c42b109cb4c04f68a68d57f5b6e4f77412b1380d64e07186a1deb9d403b
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' context "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 c.overload_0.class.should == c.overload_1(0).class end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbplusplus-0.9 | test/to_from_ruby_test.rb |