blob: fd9345814a060369e83bcf468b7faf69b62daded (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/env ruby
#
# This test implementation is directly derived from its Python counterpart.
#
require 'swig_assert'
require 'namespace_class'
begin
p = Namespace_class::Private1.new
raise SwigRubyError.new("Private1 is private")
rescue NameError => e
# OK
end
begin
p = Namespace_class::Private2.new
raise SwigRubyError.new("Private2 is private")
rescue NameError => e
# OK
end
Namespace_class::EulerT3D.toFrame(1, 1, 1)
b = Namespace_class::BooT_i.new
b = Namespace_class::BooT_H.new
f = Namespace_class::FooT_i.new
f.quack(1)
f = Namespace_class::FooT_d.new
f.moo(1)
f = Namespace_class::FooT_H.new
f.foo(Namespace_class::Hi)
f_type = f.class.to_s
swig_assert_equal('f_type', '"Namespace_class::FooT_H"', binding)
|