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.
8 lines
176 B
Ruby
8 lines
176 B
Ruby
#!/usr/bin/env ruby
|
|
#
|
|
# This test implementation is directly derived from its Python counterpart.
|
|
#
|
|
|
|
require 'namespace_virtual_method'
|
|
|
|
x = Namespace_virtual_method::Spam.new
|