This is done in preparation for adding namespace support to the Ruby part of SWIG. Some existing test cases were reorganized or duplicated for flat/nonflat nesting. For some a Ruby test script was added. Finally the ruby/Makefile.in was improved so that for test cases without an explicit test script, the generated wrapper library will be loaded by the Ruby interpreter to ensure loading works fine.
12 lines
248 B
Ruby
12 lines
248 B
Ruby
#!/usr/bin/env ruby
|
|
#
|
|
# This test implementation is directly derived from its Python counterpart.
|
|
#
|
|
|
|
require 'template_static'
|
|
|
|
Template_static::Foo_i.test
|
|
Template_static::Foo_d.test
|
|
Template_static::Foo::test
|
|
Template_static::Foo::bar_double(1)
|
|
|