/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/ruby/nested_template_base_runme.rb
16 строк
496 B
Thomas Reitmayr
Add and improve Ruby test cases in the context of nesting and namespaces
17 дек 2020, 00:30
17 дек 2020, 00:30
7963445
Код
Авторство
О чём код?
#!/usr/bin/env ruby # # This test implementation is directly derived from its Python counterpart. # require 'swig_assert' require 'nested_template_base' ois = Nested_template_base::InnerS.new(123) oic = Nested_template_base::InnerC.new # Check base method is available swig_assert_equal('oic.outer(ois).val', '123', binding, 'Wrong value calling outer') # Check non-derived class using base class swig_assert_equal('oic.innerc().outer(ois).val', '123', binding, 'Wrong value calling innerc')