r2corba 1.5.1-universal-java → 1.6.1-universal-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +5 -5
  3. data/README.rdoc +62 -0
  4. data/THANKS +4 -4
  5. data/lib/corba/cbase/IORMap.rb +0 -1
  6. data/lib/corba/cbase/ORB.rb +26 -24
  7. data/lib/corba/cbase/Request.rb +4 -5
  8. data/lib/corba/cbase/Streams.rb +2 -3
  9. data/lib/corba/cbase/Stub.rb +0 -1
  10. data/lib/corba/cbase/Typecode.rb +6 -7
  11. data/lib/corba/cbase/Values.rb +4 -3
  12. data/lib/corba/cbase/exception.rb +6 -5
  13. data/lib/corba/cbase/poa.rb +1 -2
  14. data/lib/corba/cbase/policies.rb +3 -4
  15. data/lib/corba/cbase/post_require.rb +1 -2
  16. data/lib/corba/cbase/require.rb +10 -2
  17. data/lib/corba/cmds/base.rb +1 -2
  18. data/lib/corba/cmds/test.rb +0 -1
  19. data/lib/corba/common/Any.rb +3 -3
  20. data/lib/corba/common/IDL.rb +6 -10
  21. data/lib/corba/common/ORB.rb +22 -23
  22. data/lib/corba/common/Object.rb +18 -15
  23. data/lib/corba/common/Request.rb +1 -2
  24. data/lib/corba/common/Servant.rb +4 -5
  25. data/lib/corba/common/Struct.rb +1 -2
  26. data/lib/corba/common/Stub.rb +6 -7
  27. data/lib/corba/common/Typecode.rb +91 -65
  28. data/lib/corba/common/Union.rb +6 -2
  29. data/lib/corba/common/Values.rb +2 -2
  30. data/lib/corba/common/const.rb +2 -3
  31. data/lib/corba/common/exception.rb +2 -2
  32. data/lib/corba/common/require.rb +8 -1
  33. data/lib/corba/common/version.rb +3 -4
  34. data/lib/corba/idl/BiDirPolicyC.rb +2 -3
  35. data/lib/corba/idl/CosNamingC.rb +4 -5
  36. data/lib/corba/idl/CosNamingS.rb +2 -3
  37. data/lib/corba/idl/IDL.rb +1 -2
  38. data/lib/corba/idl/IORTable.pidl +0 -1
  39. data/lib/corba/idl/MessagingC.rb +2 -3
  40. data/lib/corba/idl/POAC.rb +10 -11
  41. data/lib/corba/idl/TAO_Ext.pidl +0 -1
  42. data/lib/corba/idl/r2c_orb.rb +5 -6
  43. data/lib/corba/idl/require.rb +0 -1
  44. data/lib/corba/jbase/Any.rb +29 -28
  45. data/lib/corba/jbase/IORMap.rb +1 -2
  46. data/lib/corba/jbase/ORB.rb +5 -6
  47. data/lib/corba/jbase/Object.rb +13 -14
  48. data/lib/corba/jbase/Request.rb +9 -10
  49. data/lib/corba/jbase/Servant.rb +11 -12
  50. data/lib/corba/jbase/ServerRequest.rb +8 -9
  51. data/lib/corba/jbase/Streams.rb +68 -5
  52. data/lib/corba/jbase/Stub.rb +0 -1
  53. data/lib/corba/jbase/Typecode.rb +17 -17
  54. data/lib/corba/jbase/Values.rb +2 -1
  55. data/lib/corba/jbase/exception.rb +2 -2
  56. data/lib/corba/jbase/poa.rb +21 -22
  57. data/lib/corba/jbase/policies.rb +33 -34
  58. data/lib/corba/jbase/post_require.rb +0 -1
  59. data/lib/corba/jbase/require.rb +5 -2
  60. data/lib/corba/naming.rb +0 -1
  61. data/lib/corba/naming_service.rb +0 -1
  62. data/lib/corba/poa.rb +1 -2
  63. data/lib/corba/policies.rb +1 -2
  64. data/lib/corba/require.rb +2 -3
  65. data/lib/corba/svcs/ins/cos_naming.rb +74 -68
  66. data/lib/corba/svcs/ins/ins.rb +58 -59
  67. data/lib/corba/svcs/ins/naming_service.rb +9 -10
  68. data/lib/corba.rb +1 -2
  69. data/lib/ridlbe/ruby/config.rb +78 -74
  70. data/lib/ridlbe/ruby/orb.pidlc +0 -0
  71. data/lib/ridlbe/ruby/require.rb +0 -1
  72. data/lib/ridlbe/ruby/walker.rb +311 -288
  73. data/mkrf_conf_bingem.rb +4 -6
  74. data/rakelib/bin.rake +2 -3
  75. data/rakelib/bin.rb +4 -5
  76. data/rakelib/build.rake +22 -22
  77. data/rakelib/config.rake +2 -3
  78. data/rakelib/config.rb +32 -34
  79. data/rakelib/gem.rake +53 -38
  80. data/rakelib/gem.rb +9 -10
  81. data/rakelib/package.rake +2 -3
  82. data/rakelib/test.rake +0 -1
  83. data/test/BiDirectional/Test.idl +0 -1
  84. data/test/BiDirectional/client.rb +18 -19
  85. data/test/BiDirectional/run_test.rb +11 -12
  86. data/test/BiDirectional/server.rb +21 -23
  87. data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
  88. data/test/CORBA_Services/Naming/BindingIterator/client.rb +17 -18
  89. data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +13 -14
  90. data/test/CORBA_Services/Naming/BindingIterator/server.rb +19 -20
  91. data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
  92. data/test/CORBA_Services/Naming/Corbaname/client.rb +15 -16
  93. data/test/CORBA_Services/Naming/Corbaname/run_test.rb +13 -14
  94. data/test/CORBA_Services/Naming/Corbaname/server.rb +27 -28
  95. data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
  96. data/test/CORBA_Services/Naming/Simple/client.rb +16 -17
  97. data/test/CORBA_Services/Naming/Simple/run_test.rb +13 -14
  98. data/test/CORBA_Services/Naming/Simple/server.rb +19 -20
  99. data/test/Collocation/Diamond.idl +0 -1
  100. data/test/Collocation/run_test.rb +10 -11
  101. data/test/Collocation/test.rb +27 -21
  102. data/test/Connect_Timeout/Test.idl +0 -1
  103. data/test/Connect_Timeout/client.rb +16 -18
  104. data/test/Connect_Timeout/run_test.rb +10 -11
  105. data/test/DII/Test.idl +0 -1
  106. data/test/DII/client.rb +30 -31
  107. data/test/DII/run_test.rb +11 -12
  108. data/test/DII/server.rb +16 -17
  109. data/test/DSI/Test.idl +0 -1
  110. data/test/DSI/client.rb +16 -17
  111. data/test/DSI/run_test.rb +11 -12
  112. data/test/DSI/server.rb +17 -18
  113. data/test/Exceptions/Test.idl +0 -1
  114. data/test/Exceptions/client.rb +22 -23
  115. data/test/Exceptions/run_test.rb +11 -12
  116. data/test/Exceptions/server.rb +16 -17
  117. data/test/Hello/Test.idl +0 -1
  118. data/test/Hello/client.rb +16 -17
  119. data/test/Hello/run_test.rb +11 -12
  120. data/test/Hello/server.rb +17 -18
  121. data/test/IDL_Test/Test.idl +4 -1
  122. data/test/IDL_Test/client.rb +24 -23
  123. data/test/IDL_Test/run_test.rb +11 -12
  124. data/test/IDL_Test/server.rb +23 -19
  125. data/test/IORMap/Test.idl +0 -1
  126. data/test/IORMap/client.rb +14 -15
  127. data/test/IORMap/run_test.rb +11 -12
  128. data/test/IORMap/server.rb +23 -24
  129. data/test/IORTable/Test.idl +0 -1
  130. data/test/IORTable/client.rb +14 -15
  131. data/test/IORTable/run_test.rb +11 -12
  132. data/test/IORTable/server.rb +23 -24
  133. data/test/Implicit_Conversion/Test.idl +0 -1
  134. data/test/Implicit_Conversion/client.rb +20 -18
  135. data/test/Implicit_Conversion/run_test.rb +11 -12
  136. data/test/Implicit_Conversion/server.rb +16 -17
  137. data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
  138. data/test/Multi_Threading/Multiple_ORB/client.rb +14 -15
  139. data/test/Multi_Threading/Multiple_ORB/run_test.rb +12 -13
  140. data/test/Multi_Threading/Multiple_ORB/server.rb +17 -18
  141. data/test/Multi_Threading/Simple/Test.idl +0 -1
  142. data/test/Multi_Threading/Simple/client.rb +17 -18
  143. data/test/Multi_Threading/Simple/run_test.rb +11 -12
  144. data/test/Multi_Threading/Simple/server.rb +17 -18
  145. data/test/Multi_Threading/Threads/Test.idl +0 -4
  146. data/test/Multi_Threading/Threads/client.rb +23 -26
  147. data/test/Multi_Threading/Threads/run_test.rb +11 -12
  148. data/test/Multi_Threading/Threads/server.rb +19 -22
  149. data/test/Multi_Threading/Threads/watchdog.rb +16 -16
  150. data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
  151. data/test/Multiple_Servant_Interfaces/client.rb +14 -15
  152. data/test/Multiple_Servant_Interfaces/run_test.rb +11 -12
  153. data/test/Multiple_Servant_Interfaces/server.rb +18 -19
  154. data/test/Nil/Test.idl +0 -1
  155. data/test/Nil/run_test.rb +10 -11
  156. data/test/Nil/test.rb +22 -20
  157. data/test/OBV/AbstractInterface/client.rb +14 -15
  158. data/test/OBV/AbstractInterface/run_test.rb +11 -12
  159. data/test/OBV/AbstractInterface/server.rb +20 -20
  160. data/test/OBV/AbstractInterface/test.idl +0 -1
  161. data/test/OBV/Custom/OBV_impl.rb +2 -1
  162. data/test/OBV/Custom/client.rb +14 -15
  163. data/test/OBV/Custom/run_test.rb +11 -12
  164. data/test/OBV/Custom/server.rb +16 -17
  165. data/test/OBV/Simple/OBV_impl.rb +1 -1
  166. data/test/OBV/Simple/client.rb +14 -15
  167. data/test/OBV/Simple/run_test.rb +11 -12
  168. data/test/OBV/Simple/server.rb +16 -17
  169. data/test/OBV/Simple_Event/Event_impl.rb +1 -1
  170. data/test/OBV/Simple_Event/client.rb +14 -15
  171. data/test/OBV/Simple_Event/run_test.rb +11 -12
  172. data/test/OBV/Simple_Event/server.rb +16 -17
  173. data/test/OBV/Supports/client.rb +19 -20
  174. data/test/OBV/Supports/run_test.rb +11 -12
  175. data/test/OBV/Supports/server.rb +15 -16
  176. data/test/OBV/Supports/supports.idl +0 -1
  177. data/test/OBV/Supports/supports_impl.rb +3 -1
  178. data/test/OBV/Tree/client.rb +14 -15
  179. data/test/OBV/Tree/run_test.rb +11 -12
  180. data/test/OBV/Tree/server.rb +19 -20
  181. data/test/OBV/Tree/test.idl +0 -1
  182. data/test/OBV/Truncatable/Extra.idl +0 -1
  183. data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
  184. data/test/OBV/Truncatable/client.rb +57 -58
  185. data/test/OBV/Truncatable/run_test.rb +11 -12
  186. data/test/OBV/Truncatable/server.rb +15 -16
  187. data/test/OBV/ValueBox/client.rb +154 -154
  188. data/test/OBV/ValueBox/run_test.rb +11 -12
  189. data/test/OBV/ValueBox/server.rb +42 -42
  190. data/test/Object/Test.idl +0 -1
  191. data/test/Object/client.rb +15 -16
  192. data/test/Object/run_test.rb +11 -12
  193. data/test/Object/server.rb +19 -20
  194. data/test/POA/run_test.rb +10 -11
  195. data/test/POA/test.rb +17 -18
  196. data/test/Param_Test/client.rb +53 -54
  197. data/test/Param_Test/run_test.rb +11 -12
  198. data/test/Param_Test/server.rb +60 -61
  199. data/test/Performance/Simple/Test.idl +0 -1
  200. data/test/Performance/Simple/client.rb +16 -17
  201. data/test/Performance/Simple/run_test.rb +11 -12
  202. data/test/Performance/Simple/server.rb +16 -17
  203. data/test/Policies/Test.idl +0 -1
  204. data/test/Policies/run_test.rb +10 -11
  205. data/test/Policies/test.rb +23 -25
  206. data/test/Timeout/client.rb +21 -22
  207. data/test/Timeout/run_test.rb +11 -12
  208. data/test/Timeout/server.rb +19 -20
  209. data/test/Timeout/test.idl +0 -1
  210. data/test/lib/assert.rb +0 -2
  211. data/test/lib/test.rb +29 -25
  212. data/test/test_runner.rb +22 -24
  213. metadata +27 -64
  214. data/README +0 -62
  215. data/jacorb/lib/antlr-2.7.2.jar +0 -0
  216. data/jacorb/lib/jacorb-3.5.jar +0 -0
  217. data/jacorb/lib/jacorb-omgapi-3.5.jar +0 -0
  218. data/jacorb/lib/jacorb-services-3.5.jar +0 -0
  219. data/jacorb/lib/slf4j-api-1.7.6.jar +0 -0
  220. data/jacorb/lib/slf4j-jdk14-1.7.6.jar +0 -0
  221. data/test/BiDirectional/server.ior +0 -1
  222. data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
  223. data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
  224. data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
  225. data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
  226. data/test/DII/server.ior +0 -1
  227. data/test/DSI/server.ior +0 -1
  228. data/test/Exceptions/server.ior +0 -1
  229. data/test/Hello/gateway.ior +0 -1
  230. data/test/IDL_Test/server.ior +0 -1
  231. data/test/IORMap/server.ior +0 -1
  232. data/test/IORTable/server.ior +0 -0
  233. data/test/Implicit_Conversion/server.ior +0 -1
  234. data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
  235. data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
  236. data/test/Multi_Threading/Simple/server.ior +0 -1
  237. data/test/Multi_Threading/Threads/server.ior +0 -1
  238. data/test/Multi_Threading/Threads/watchdog.ior +0 -1
  239. data/test/Multiple_Servant_Interfaces/server.ior +0 -1
  240. data/test/OBV/AbstractInterface/server.ior +0 -1
  241. data/test/OBV/Custom/server.ior +0 -1
  242. data/test/OBV/Simple/server.ior +0 -1
  243. data/test/OBV/Simple_Event/server.ior +0 -1
  244. data/test/OBV/Supports/server.ior +0 -1
  245. data/test/OBV/Tree/server.ior +0 -1
  246. data/test/OBV/Truncatable/server.ior +0 -1
  247. data/test/OBV/ValueBox/server.ior +0 -1
  248. data/test/Object/server.ior +0 -1
  249. data/test/Param_Test/server.ior +0 -1
  250. data/test/Performance/Simple/server.ior +0 -1
  251. data/test/Timeout/server.ior +0 -1
  252. data/test/test.log +0 -20
  253. data/test/test2.log +0 -5000
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  require 'optparse'
@@ -24,22 +23,22 @@ ARGV.options do |opts|
24
23
  script_name = File.basename($0)
25
24
  opts.banner = "Usage: ruby #{script_name} [options]"
26
25
 
27
- opts.separator ""
26
+ opts.separator ''
28
27
 
29
- opts.on("--k IORFILE",
30
- "Set IOR.",
31
- "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
32
- opts.on("--d LVL",
33
- "Set ORBDebugLevel value.",
34
- "Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
35
- opts.on("--use-implement",
36
- "Load IDL through CORBA.implement() instead of precompiled code.",
37
- "Default: off") { |v| OPTIONS[:use_implement]=v }
28
+ opts.on('--k IORFILE',
29
+ 'Set IOR.',
30
+ "Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
31
+ opts.on('--d LVL',
32
+ 'Set ORBDebugLevel value.',
33
+ 'Default: 0') { |v| OPTIONS[:orb_debuglevel] = v }
34
+ opts.on('--use-implement',
35
+ 'Load IDL through CORBA.implement() instead of precompiled code.',
36
+ 'Default: off') { |v| OPTIONS[:use_implement] = v }
38
37
 
39
- opts.separator ""
38
+ opts.separator ''
40
39
 
41
- opts.on("-h", "--help",
42
- "Show this help message.") { puts opts; exit }
40
+ opts.on('-h', '--help',
41
+ 'Show this help message.') { puts opts; exit }
43
42
 
44
43
  opts.parse!
45
44
  end
@@ -65,9 +64,9 @@ module Test
65
64
  STDERR.puts '*** basic_op1 (1)'
66
65
  retval, p2_out, p3_out = test.basic_op1(p1, p2)
67
66
 
68
- assert "basic_invocations:1 failed", (p2_out == (53*3))
69
- assert "basic_invocations:1 failed", (p3_out == (53*5))
70
- assert "basic_invocations:1 failed", (retval == (p1.value*3))
67
+ assert 'basic_invocations:1 failed', (p2_out == (53 * 3))
68
+ assert 'basic_invocations:1 failed', (p3_out == (53 * 5))
69
+ assert 'basic_invocations:1 failed', (retval == (p1.value * 3))
71
70
 
72
71
  # test boxed value using implicit conversion of Ruby types
73
72
  p1 = 25
@@ -79,9 +78,9 @@ module Test
79
78
  STDERR.puts '*** basic_op1 (2)'
80
79
  retval, p2_out, p3_out = test.basic_op1(p1, p2)
81
80
 
82
- assert "basic_invocations:2 failed", (p2_out == (53*3))
83
- assert "basic_invocations:2 failed", (p3_out == (53*5))
84
- assert "basic_invocations:2 failed", (retval == (p1*3))
81
+ assert 'basic_invocations:2 failed', (p2_out == (53 * 3))
82
+ assert 'basic_invocations:2 failed', (p3_out == (53 * 5))
83
+ assert 'basic_invocations:2 failed', (retval == (p1 * 3))
85
84
 
86
85
  # test boxed value using nil
87
86
  p1 = nil
@@ -93,9 +92,9 @@ module Test
93
92
  STDERR.puts '*** basic_op1 (3)'
94
93
  retval, p2_out, p3_out = test.basic_op1(p1, p2)
95
94
 
96
- assert "basic_invocations:2 failed", (p2_out == (53*3))
97
- assert "basic_invocations:2 failed", (p3_out == (53*5))
98
- assert "basic_invocations:2 failed", (retval.nil?)
95
+ assert 'basic_invocations:2 failed', (p2_out == (53 * 3))
96
+ assert 'basic_invocations:2 failed', (p3_out == (53 * 5))
97
+ assert 'basic_invocations:2 failed', (retval.nil?)
99
98
 
100
99
  # test boxed value from nested module
101
100
  p1 = Vb_basic::M_VBlong.new(25) # explicit value box
@@ -106,9 +105,9 @@ module Test
106
105
 
107
106
  retval, p2_out, p3_out = test.basic_op2(p1, p2)
108
107
 
109
- assert "basic_invocations:3 failed", (p2_out == (53*3))
110
- assert "basic_invocations:3 failed", (p3_out == (53*5))
111
- assert "basic_invocations:3 failed", (retval == (p1.value*3))
108
+ assert 'basic_invocations:3 failed', (p2_out == (53 * 3))
109
+ assert 'basic_invocations:3 failed', (p3_out == (53 * 5))
110
+ assert 'basic_invocations:3 failed', (retval == (p1.value * 3))
112
111
 
113
112
  # test regular Ruby types using values from valueboxes
114
113
  p1 = VBlong.new(25)
@@ -119,71 +118,71 @@ module Test
119
118
 
120
119
  retval, p2_out, p3_out = test.basic_op3(p1.value, p2.value)
121
120
 
122
- assert "basic_invocations:4 failed", (p2_out == (53*3))
123
- assert "basic_invocations:4 failed", (p3_out == (53*5))
124
- assert "basic_invocations:4 failed", (retval == (p1.value*3))
121
+ assert 'basic_invocations:4 failed', (p2_out == (53 * 3))
122
+ assert 'basic_invocations:4 failed', (p3_out == (53 * 5))
123
+ assert 'basic_invocations:4 failed', (retval == (p1.value * 3))
125
124
  end
126
125
 
127
126
  def Test.boxed_string_invocations(test)
128
- string1 = "First-string"
129
- string2 = "Second-string"
127
+ string1 = 'First-string'
128
+ string2 = 'Second-string'
130
129
 
131
130
  # Establish that we have data setup correctly...
132
- assert "boxed_string_invocations:0 failed", (string1 < string2)
133
- assert "boxed_string_invocations:0 failed", (string2 > string1)
134
- assert "boxed_string_invocations:0 failed", (string1 == string1)
131
+ assert 'boxed_string_invocations:0 failed', (string1 < string2)
132
+ assert 'boxed_string_invocations:0 failed', (string2 > string1)
133
+ assert 'boxed_string_invocations:0 failed', (string1 == string1)
135
134
 
136
135
  # create valueboxes
137
136
  vbstring1 = VBstring.new(string1.dup)
138
137
  vbstring2 = VBstring.new(string1.dup)
139
138
 
140
139
  # check valuebox correctness
141
- assert "boxed_string_invocations:1 failed", (vbstring1.value == string1)
142
- assert "boxed_string_invocations:1 failed", (vbstring2.value == string1)
140
+ assert 'boxed_string_invocations:1 failed', (vbstring1.value == string1)
141
+ assert 'boxed_string_invocations:1 failed', (vbstring2.value == string1)
143
142
 
144
143
  # test value modifier
145
144
  vbstring2.value = string2.dup
146
- assert "boxed_string_invocations:2 failed", (vbstring2.value == string2)
145
+ assert 'boxed_string_invocations:2 failed', (vbstring2.value == string2)
147
146
 
148
147
  # test invocation with value boxes
149
148
  p1 = VBstring.new('string1')
150
149
  p2 = VBstring.new('string2')
151
- assert "boxed_string_invocations:3 failed", (p1.value == 'string1')
152
- assert "boxed_string_invocations:3 failed", (p2.value == 'string2')
150
+ assert 'boxed_string_invocations:3 failed', (p1.value == 'string1')
151
+ assert 'boxed_string_invocations:3 failed', (p2.value == 'string2')
153
152
 
154
153
  p2_out = nil
155
154
  p3_out = nil
156
155
  retval = nil
157
156
  retval, p2_out, p3_out = test.string_op1(p1, p2)
158
157
 
159
- assert "boxed_string_invocations:4 failed", (p2_out == '2string')
160
- assert "boxed_string_invocations:4 failed", (p3_out == '2string')
161
- assert "boxed_string_invocations:4 failed", (retval == '1string')
158
+ assert 'boxed_string_invocations:4 failed', (p2_out == '2string')
159
+ assert 'boxed_string_invocations:4 failed', (p3_out == '2string')
160
+ assert 'boxed_string_invocations:4 failed', (retval == '1string')
162
161
 
163
162
  # test invocation with Ruby types using valuebox values
164
- assert "boxed_string_invocations:3 failed", (p1.value == 'string1')
165
- assert "boxed_string_invocations:3 failed", (p2.value == 'string2')
163
+ assert 'boxed_string_invocations:3 failed', (p1.value == 'string1')
164
+ assert 'boxed_string_invocations:3 failed', (p2.value == 'string2')
166
165
 
167
166
  p2_out = nil
168
167
  p3_out = nil
169
168
  retval = nil
170
169
  retval, p2_out, p3_out = test.string_op2(p1.value, p2.value)
171
170
 
172
- assert "boxed_string_invocations:4 failed", (p2_out == '2string')
173
- assert "boxed_string_invocations:4 failed", (p3_out == '2string')
174
- assert "boxed_string_invocations:4 failed", (retval == '1string')
171
+ assert 'boxed_string_invocations:4 failed', (p2_out == '2string')
172
+ assert 'boxed_string_invocations:4 failed', (p3_out == '2string')
173
+ assert 'boxed_string_invocations:4 failed', (retval == '1string')
175
174
  end
176
175
 
177
176
  def Test.boxed_sequence_invocations(test)
178
177
  # basic test
179
178
  p1 = VBseqlong.new([101, 202, 303])
180
- assert "boxed_sequence_invocations:0 failed", (p1.value[0]==101 && p1.value[2]==303)
179
+ assert 'boxed_sequence_invocations:0 failed', (p1.value[0] == 101 && p1.value[2] == 303)
181
180
 
182
181
  # test invocation with value boxes
183
182
  p1 = VBseqlong.new([10, 9, 8, 7])
184
183
  p2 = VBseqlong.new([100, 99, 98])
185
- assert "boxed_sequence_invocations:1 failed", (p1.value[0] == 10 && p1.value[3] == 7)
186
- assert "boxed_sequence_invocations:1 failed", (p2.value[0] == 100 && p2.value[2] == 98)
184
+ assert 'boxed_sequence_invocations:1 failed', (p1.value[0] == 10 && p1.value[3] == 7)
185
+ assert 'boxed_sequence_invocations:1 failed', (p2.value[0] == 100 && p2.value[2] == 98)
187
186
 
188
187
  p2_out = nil
189
188
  p3_out = nil
@@ -191,13 +190,13 @@ module Test
191
190
  retval, p2_out, p3_out = test.seq_op1(p1, p2)
192
191
 
193
192
  p2.value().each_with_index do |e, i|
194
- assert "boxed_sequence_invocations:2 failed", (p2_out[i] == e*3)
193
+ assert 'boxed_sequence_invocations:2 failed', (p2_out[i] == e * 3)
195
194
  end
196
195
  p2.value().each_with_index do |e, i|
197
- assert "boxed_sequence_invocations:2 failed", (p3_out[i] == e*5)
196
+ assert 'boxed_sequence_invocations:2 failed', (p3_out[i] == e * 5)
198
197
  end
199
198
  p1.value().each_with_index do |e, i|
200
- assert "boxed_sequence_invocations:2 failed", (retval[i] == e)
199
+ assert 'boxed_sequence_invocations:2 failed', (retval[i] == e)
201
200
  end
202
201
 
203
202
  # test invocation with Ruby types using valuebox values
@@ -206,10 +205,10 @@ module Test
206
205
  p2_out, p3_out = test.seq_op2(p1.value, p2.value)
207
206
 
208
207
  p2.value().each_with_index do |e, i|
209
- assert "boxed_sequence_invocations:3 failed", (p2_out[i] == e*3)
208
+ assert 'boxed_sequence_invocations:3 failed', (p2_out[i] == e * 3)
210
209
  end
211
210
  p2.value().each_with_index do |e, i|
212
- assert "boxed_sequence_invocations:3 failed", (p3_out[i] == e*5)
211
+ assert 'boxed_sequence_invocations:3 failed', (p3_out[i] == e * 5)
213
212
  end
214
213
  end
215
214
 
@@ -217,96 +216,96 @@ module Test
217
216
  # basic test
218
217
  p1 = VBfixed_struct1.new(
219
218
  Fixed_Struct1.new(29,
220
- Fixed_Struct1::Bstruct.new(117,21)))
219
+ Fixed_Struct1::Bstruct.new(117, 21)))
221
220
 
222
- assert "boxed_struct_invocations:0 failed", (p1.value.is_a?(Fixed_Struct1))
223
- assert "boxed_struct_invocations:0 failed", (p1.value.l == 29)
224
- assert "boxed_struct_invocations:0 failed", (p1.value.abstruct.s1 == 117 && p1.value.abstruct.s2 == 21)
221
+ assert 'boxed_struct_invocations:0 failed', (p1.value.is_a?(Fixed_Struct1))
222
+ assert 'boxed_struct_invocations:0 failed', (p1.value.l == 29)
223
+ assert 'boxed_struct_invocations:0 failed', (p1.value.abstruct.s1 == 117 && p1.value.abstruct.s2 == 21)
225
224
 
226
225
  # test invocation with valueboxes
227
226
  p2 = VBfixed_struct1.new(
228
227
  Fixed_Struct1.new(92,
229
- Fixed_Struct1::Bstruct.new(171,12)))
228
+ Fixed_Struct1::Bstruct.new(171, 12)))
230
229
  p2_out = nil
231
230
  p3_out = nil
232
231
  retval = nil
233
232
  retval, p2_out, p3_out = test.struct_op1(p1, p2)
234
233
 
235
- assert "boxed_struct_invocations:1 failed", (p2_out.is_a?(Fixed_Struct1))
236
- assert "boxed_struct_invocations:1 failed", (p2_out.l == (92*3))
237
- assert "boxed_struct_invocations:1 failed", (p2_out.abstruct.s1 == (171*3) &&
238
- p2_out.abstruct.s2 == (12*3))
234
+ assert 'boxed_struct_invocations:1 failed', (p2_out.is_a?(Fixed_Struct1))
235
+ assert 'boxed_struct_invocations:1 failed', (p2_out.l == (92 * 3))
236
+ assert 'boxed_struct_invocations:1 failed', (p2_out.abstruct.s1 == (171 * 3) &&
237
+ p2_out.abstruct.s2 == (12 * 3))
239
238
 
240
- assert "boxed_struct_invocations:1 failed", (p3_out.is_a?(Fixed_Struct1))
241
- assert "boxed_struct_invocations:1 failed", (p3_out.l == (92*5))
242
- assert "boxed_struct_invocations:1 failed", (p3_out.abstruct.s1 == (171*5) &&
243
- p3_out.abstruct.s2 == (12*5))
239
+ assert 'boxed_struct_invocations:1 failed', (p3_out.is_a?(Fixed_Struct1))
240
+ assert 'boxed_struct_invocations:1 failed', (p3_out.l == (92 * 5))
241
+ assert 'boxed_struct_invocations:1 failed', (p3_out.abstruct.s1 == (171 * 5) &&
242
+ p3_out.abstruct.s2 == (12 * 5))
244
243
 
245
- assert "boxed_struct_invocations:1 failed", (retval.is_a?(Fixed_Struct1))
246
- assert "boxed_struct_invocations:1 failed", (retval.l == p1.value.l)
247
- assert "boxed_struct_invocations:1 failed", (retval.abstruct.s1 == p1.value.abstruct.s1 &&
244
+ assert 'boxed_struct_invocations:1 failed', (retval.is_a?(Fixed_Struct1))
245
+ assert 'boxed_struct_invocations:1 failed', (retval.l == p1.value.l)
246
+ assert 'boxed_struct_invocations:1 failed', (retval.abstruct.s1 == p1.value.abstruct.s1 &&
248
247
  retval.abstruct.s2 == p1.value.abstruct.s2)
249
248
 
250
249
  # test invocation with Ruby types using valuebox values
251
250
  p2_out, p3_out = test.struct_op2(p1.value, p2_out)
252
251
 
253
- assert "boxed_struct_invocations:2 failed", (p2_out.is_a?(Fixed_Struct1))
254
- assert "boxed_struct_invocations:2 failed", (p2_out.l == (92*3*3))
255
- assert "boxed_struct_invocations:2 failed", (p2_out.abstruct.s1 == (171*3*3) &&
256
- p2_out.abstruct.s2 == (12*3*3))
252
+ assert 'boxed_struct_invocations:2 failed', (p2_out.is_a?(Fixed_Struct1))
253
+ assert 'boxed_struct_invocations:2 failed', (p2_out.l == (92 * 3 * 3))
254
+ assert 'boxed_struct_invocations:2 failed', (p2_out.abstruct.s1 == (171 * 3 * 3) &&
255
+ p2_out.abstruct.s2 == (12 * 3 * 3))
257
256
 
258
- assert "boxed_struct_invocations:2 failed", (p3_out.is_a?(Fixed_Struct1))
259
- assert "boxed_struct_invocations:2 failed", (p3_out.l == p1.value.l)
260
- assert "boxed_struct_invocations:2 failed", (p3_out.abstruct.s1 == p1.value.abstruct.s1 &&
257
+ assert 'boxed_struct_invocations:2 failed', (p3_out.is_a?(Fixed_Struct1))
258
+ assert 'boxed_struct_invocations:2 failed', (p3_out.l == p1.value.l)
259
+ assert 'boxed_struct_invocations:2 failed', (p3_out.abstruct.s1 == p1.value.abstruct.s1 &&
261
260
  p3_out.abstruct.s2 == p1.value.abstruct.s2)
262
261
 
263
262
  # test invocation with valueboxes
264
263
  p1 = VBvariable_struct1.new(Variable_Struct1.new(29, 'variable1'))
265
264
  p2 = VBvariable_struct1.new(Variable_Struct1.new(37, 'variable2'))
266
265
 
267
- assert "boxed_struct_invocations:3 failed", (p1.value.is_a?(Variable_Struct1))
268
- assert "boxed_struct_invocations:3 failed", (p1.value.l == 29)
269
- assert "boxed_struct_invocations:3 failed", (p1.value.str == 'variable1')
266
+ assert 'boxed_struct_invocations:3 failed', (p1.value.is_a?(Variable_Struct1))
267
+ assert 'boxed_struct_invocations:3 failed', (p1.value.l == 29)
268
+ assert 'boxed_struct_invocations:3 failed', (p1.value.str == 'variable1')
270
269
 
271
270
  p2_out = nil
272
271
  p3_out = nil
273
272
  retval = nil
274
273
  retval, p2_out, p3_out = test.struct_op3(p1, p2)
275
274
 
276
- assert "boxed_struct_invocations:4 failed", (p2_out.is_a?(Variable_Struct1))
277
- assert "boxed_struct_invocations:4 failed", (p2_out.l == (37*3))
278
- assert "boxed_struct_invocations:4 failed", (p2_out.str == '2variable')
275
+ assert 'boxed_struct_invocations:4 failed', (p2_out.is_a?(Variable_Struct1))
276
+ assert 'boxed_struct_invocations:4 failed', (p2_out.l == (37 * 3))
277
+ assert 'boxed_struct_invocations:4 failed', (p2_out.str == '2variable')
279
278
 
280
- assert "boxed_struct_invocations:4 failed", (p3_out.is_a?(Variable_Struct1))
281
- assert "boxed_struct_invocations:4 failed", (p3_out.l == (37*3))
282
- assert "boxed_struct_invocations:4 failed", (p3_out.str == '2variable')
279
+ assert 'boxed_struct_invocations:4 failed', (p3_out.is_a?(Variable_Struct1))
280
+ assert 'boxed_struct_invocations:4 failed', (p3_out.l == (37 * 3))
281
+ assert 'boxed_struct_invocations:4 failed', (p3_out.str == '2variable')
283
282
 
284
- assert "boxed_struct_invocations:1 failed", (retval.is_a?(Variable_Struct1))
285
- assert "boxed_struct_invocations:1 failed", (retval.l == p1.value.l)
286
- assert "boxed_struct_invocations:1 failed", (retval.str == p1.value.str)
283
+ assert 'boxed_struct_invocations:1 failed', (retval.is_a?(Variable_Struct1))
284
+ assert 'boxed_struct_invocations:1 failed', (retval.l == p1.value.l)
285
+ assert 'boxed_struct_invocations:1 failed', (retval.str == p1.value.str)
287
286
 
288
287
  # test invocation with Ruby types using valuebox values
289
288
  p2_out, p3_out = test.struct_op4(p1.value, p2_out)
290
289
 
291
- assert "boxed_struct_invocations:4 failed", (p2_out.is_a?(Variable_Struct1))
292
- assert "boxed_struct_invocations:4 failed", (p2_out.l == (37*3*3))
293
- assert "boxed_struct_invocations:4 failed", (p2_out.str == 'e2variabl')
290
+ assert 'boxed_struct_invocations:4 failed', (p2_out.is_a?(Variable_Struct1))
291
+ assert 'boxed_struct_invocations:4 failed', (p2_out.l == (37 * 3 * 3))
292
+ assert 'boxed_struct_invocations:4 failed', (p2_out.str == 'e2variabl')
294
293
 
295
- assert "boxed_struct_invocations:1 failed", (p3_out.is_a?(Variable_Struct1))
296
- assert "boxed_struct_invocations:1 failed", (p3_out.l == p1.value.l)
297
- assert "boxed_struct_invocations:1 failed", (p3_out.str == p1.value.str)
294
+ assert 'boxed_struct_invocations:1 failed', (p3_out.is_a?(Variable_Struct1))
295
+ assert 'boxed_struct_invocations:1 failed', (p3_out.l == p1.value.l)
296
+ assert 'boxed_struct_invocations:1 failed', (p3_out.str == p1.value.str)
298
297
  end
299
298
 
300
299
  def Test.boxed_array_invocations(test)
301
300
  # basic test
302
301
  p1 = VBlongarray.new([101, 202, 303])
303
- assert "boxed_array_invocations:0 failed", (p1.value[0]==101 && p1.value[2]==303)
302
+ assert 'boxed_array_invocations:0 failed', (p1.value[0] == 101 && p1.value[2] == 303)
304
303
 
305
304
  # test invocation with value boxes
306
305
  p1 = VBlongarray.new([10, 9, 8])
307
306
  p2 = VBlongarray.new([100, 99, 98])
308
- assert "boxed_array_invocations:1 failed", (p1.value[0] == 10 && p1.value[2] == 8)
309
- assert "boxed_array_invocations:1 failed", (p2.value[0] == 100 && p2.value[2] == 98)
307
+ assert 'boxed_array_invocations:1 failed', (p1.value[0] == 10 && p1.value[2] == 8)
308
+ assert 'boxed_array_invocations:1 failed', (p2.value[0] == 100 && p2.value[2] == 98)
310
309
 
311
310
  p2_out = nil
312
311
  p3_out = nil
@@ -314,13 +313,13 @@ module Test
314
313
  retval, p2_out, p3_out = test.array_op1(p1, p2)
315
314
 
316
315
  p2.value().each_with_index do |e, i|
317
- assert "boxed_array_invocations:2 failed", (p2_out[i] == e*3)
316
+ assert 'boxed_array_invocations:2 failed', (p2_out[i] == e * 3)
318
317
  end
319
318
  p2.value().each_with_index do |e, i|
320
- assert "boxed_array_invocations:2 failed", (p3_out[i] == e*3)
319
+ assert 'boxed_array_invocations:2 failed', (p3_out[i] == e * 3)
321
320
  end
322
321
  p1.value().each_with_index do |e, i|
323
- assert "boxed_array_invocations:2 failed", (retval[i] == e)
322
+ assert 'boxed_array_invocations:2 failed', (retval[i] == e)
324
323
  end
325
324
 
326
325
  # test invocation with Ruby types using valuebox values
@@ -329,17 +328,17 @@ module Test
329
328
  p2_out, p3_out = test.array_op2(p1.value, p2.value)
330
329
 
331
330
  p2.value().each_with_index do |e, i|
332
- assert "boxed_array_invocations:3 failed", (p2_out[i] == e*3)
331
+ assert 'boxed_array_invocations:3 failed', (p2_out[i] == e * 3)
333
332
  end
334
333
  p1.value().each_with_index do |e, i|
335
- assert "boxed_array_invocations:3 failed", (p3_out[i] == e)
334
+ assert 'boxed_array_invocations:3 failed', (p3_out[i] == e)
336
335
  end
337
336
 
338
337
  # test invocation with value boxes
339
338
  p1 = VBstringarray.new(['in string1', 'in string1'])
340
339
  p2 = VBstringarray.new(['inout string1', 'inout string1'])
341
- assert "boxed_array_invocations:4 failed", (p1.value[0] == 'in string1' && p1.value[1] == 'in string1')
342
- assert "boxed_array_invocations:4 failed", (p2.value[0] == 'inout string1' && p2.value[1] == 'inout string1')
340
+ assert 'boxed_array_invocations:4 failed', (p1.value[0] == 'in string1' && p1.value[1] == 'in string1')
341
+ assert 'boxed_array_invocations:4 failed', (p2.value[0] == 'inout string1' && p2.value[1] == 'inout string1')
343
342
 
344
343
  p2_out = nil
345
344
  p3_out = nil
@@ -347,13 +346,13 @@ module Test
347
346
  retval, p2_out, p3_out = test.array_op3(p1, p2)
348
347
 
349
348
  p2.value().each_with_index do |e, i|
350
- assert "boxed_array_invocations:5 failed", (p2_out[i] == '1inout string')
349
+ assert 'boxed_array_invocations:5 failed', (p2_out[i] == '1inout string')
351
350
  end
352
351
  p2.value().each_with_index do |e, i|
353
- assert "boxed_array_invocations:5 failed", (p3_out[i] == '1inout string')
352
+ assert 'boxed_array_invocations:5 failed', (p3_out[i] == '1inout string')
354
353
  end
355
354
  p1.value().each_with_index do |e, i|
356
- assert "boxed_array_invocations:5 failed", (retval[i] == e)
355
+ assert 'boxed_array_invocations:5 failed', (retval[i] == e)
357
356
  end
358
357
 
359
358
  # test invocation with Ruby types using valuebox values
@@ -362,12 +361,13 @@ module Test
362
361
  p2_out, p3_out = test.array_op4(p1.value, p2.value)
363
362
 
364
363
  p2.value().each_with_index do |e, i|
365
- assert "boxed_array_invocations:6 failed", (p2_out[i] == '1inout string')
364
+ assert 'boxed_array_invocations:6 failed', (p2_out[i] == '1inout string')
366
365
  end
367
366
  p1.value().each_with_index do |e, i|
368
- assert "boxed_array_invocations:6 failed", (p3_out[i] == e)
367
+ assert 'boxed_array_invocations:6 failed', (p3_out[i] == e)
369
368
  end
370
369
  end
370
+
371
371
  def Test.boxed_union_invocations(test)
372
372
  # basic test
373
373
  p1 = VBfixed_union1.new(Fixed_Union1.new)
@@ -375,13 +375,13 @@ module Test
375
375
  p2 = VBfixed_union1.new(Fixed_Union1.new)
376
376
  p2.value.m2 = 789
377
377
 
378
- assert "boxed_union_invocations:0 failed", (p1.value.is_a?(Fixed_Union1))
379
- assert "boxed_union_invocations:0 failed", (p1.value._disc == 1)
380
- assert "boxed_union_invocations:0 failed", (p1.value.m1 == 321)
378
+ assert 'boxed_union_invocations:0 failed', (p1.value.is_a?(Fixed_Union1))
379
+ assert 'boxed_union_invocations:0 failed', (p1.value._disc == 1)
380
+ assert 'boxed_union_invocations:0 failed', (p1.value.m1 == 321)
381
381
 
382
- assert "boxed_union_invocations:0 failed", (p2.value.is_a?(Fixed_Union1))
383
- assert "boxed_union_invocations:0 failed", (p2.value._disc == 2)
384
- assert "boxed_union_invocations:0 failed", (p2.value.m1 == 789)
382
+ assert 'boxed_union_invocations:0 failed', (p2.value.is_a?(Fixed_Union1))
383
+ assert 'boxed_union_invocations:0 failed', (p2.value._disc == 2)
384
+ assert 'boxed_union_invocations:0 failed', (p2.value.m1 == 789)
385
385
 
386
386
  # test invocation with valueboxes
387
387
  p2_out = nil
@@ -389,30 +389,30 @@ module Test
389
389
  retval = nil
390
390
  retval, p2_out, p3_out = test.union_op1(p1, p2)
391
391
 
392
- assert "boxed_union_invocations:1 failed", (p2_out.is_a?(Fixed_Union1))
393
- assert "boxed_union_invocations:1 failed", (p2_out._disc == 2)
394
- assert "boxed_union_invocations:1 failed", (p2_out.m2 == 789*3)
392
+ assert 'boxed_union_invocations:1 failed', (p2_out.is_a?(Fixed_Union1))
393
+ assert 'boxed_union_invocations:1 failed', (p2_out._disc == 2)
394
+ assert 'boxed_union_invocations:1 failed', (p2_out.m2 == 789 * 3)
395
395
 
396
- assert "boxed_union_invocations:1 failed", (p3_out.is_a?(Fixed_Union1))
397
- assert "boxed_union_invocations:1 failed", (p3_out._disc == 1)
398
- assert "boxed_union_invocations:1 failed", (p3_out.m1 == 321*3)
396
+ assert 'boxed_union_invocations:1 failed', (p3_out.is_a?(Fixed_Union1))
397
+ assert 'boxed_union_invocations:1 failed', (p3_out._disc == 1)
398
+ assert 'boxed_union_invocations:1 failed', (p3_out.m1 == 321 * 3)
399
399
 
400
- assert "boxed_union_invocations:1 failed", (retval.is_a?(Fixed_Union1))
401
- assert "boxed_union_invocations:1 failed", (retval._disc == 1)
402
- assert "boxed_union_invocations:1 failed", (retval.m1 == 321*3)
400
+ assert 'boxed_union_invocations:1 failed', (retval.is_a?(Fixed_Union1))
401
+ assert 'boxed_union_invocations:1 failed', (retval._disc == 1)
402
+ assert 'boxed_union_invocations:1 failed', (retval.m1 == 321 * 3)
403
403
 
404
404
  # test invocation with Ruby types using valuebox values
405
405
  p2_out = nil
406
406
  p3_out = nil
407
407
  p2_out, p3_out = test.union_op2(p1.value, p2.value)
408
408
 
409
- assert "boxed_union_invocations:1 failed", (p2_out.is_a?(Fixed_Union1))
410
- assert "boxed_union_invocations:1 failed", (p2_out._disc == 2)
411
- assert "boxed_union_invocations:1 failed", (p2_out.m2 == 789*3)
409
+ assert 'boxed_union_invocations:1 failed', (p2_out.is_a?(Fixed_Union1))
410
+ assert 'boxed_union_invocations:1 failed', (p2_out._disc == 2)
411
+ assert 'boxed_union_invocations:1 failed', (p2_out.m2 == 789 * 3)
412
412
 
413
- assert "boxed_union_invocations:1 failed", (p3_out.is_a?(Fixed_Union1))
414
- assert "boxed_union_invocations:1 failed", (p3_out._disc == 1)
415
- assert "boxed_union_invocations:1 failed", (p3_out.m1 == 321)
413
+ assert 'boxed_union_invocations:1 failed', (p3_out.is_a?(Fixed_Union1))
414
+ assert 'boxed_union_invocations:1 failed', (p3_out._disc == 1)
415
+ assert 'boxed_union_invocations:1 failed', (p3_out.m1 == 321)
416
416
 
417
417
  # test invocation with valueboxes
418
418
  p1 = VBvariable_union1.new(Variable_Union1.new)
@@ -420,50 +420,50 @@ module Test
420
420
  p2 = VBvariable_union1.new(Variable_Union1.new)
421
421
  p2.value.m2 = 'abracadabra'
422
422
 
423
- assert "boxed_union_invocations:0 failed", (p1.value.is_a?(Variable_Union1))
424
- assert "boxed_union_invocations:0 failed", (p1.value._disc == 1)
425
- assert "boxed_union_invocations:0 failed", (p1.value.m1 == 321)
423
+ assert 'boxed_union_invocations:0 failed', (p1.value.is_a?(Variable_Union1))
424
+ assert 'boxed_union_invocations:0 failed', (p1.value._disc == 1)
425
+ assert 'boxed_union_invocations:0 failed', (p1.value.m1 == 321)
426
426
 
427
- assert "boxed_union_invocations:0 failed", (p2.value.is_a?(Variable_Union1))
428
- assert "boxed_union_invocations:0 failed", (p2.value._disc == 2)
429
- assert "boxed_union_invocations:0 failed", (p2.value.m1 == 'abracadabra')
427
+ assert 'boxed_union_invocations:0 failed', (p2.value.is_a?(Variable_Union1))
428
+ assert 'boxed_union_invocations:0 failed', (p2.value._disc == 2)
429
+ assert 'boxed_union_invocations:0 failed', (p2.value.m1 == 'abracadabra')
430
430
 
431
431
  p2_out = nil
432
432
  p3_out = nil
433
433
  retval = nil
434
434
  retval, p2_out, p3_out = test.union_op3(p1, p2)
435
435
 
436
- assert "boxed_union_invocations:1 failed", (p2_out.is_a?(Variable_Union1))
437
- assert "boxed_union_invocations:1 failed", (p2_out._disc == 2)
438
- assert "boxed_union_invocations:1 failed", (p2_out.m2 == 'aabracadabr')
436
+ assert 'boxed_union_invocations:1 failed', (p2_out.is_a?(Variable_Union1))
437
+ assert 'boxed_union_invocations:1 failed', (p2_out._disc == 2)
438
+ assert 'boxed_union_invocations:1 failed', (p2_out.m2 == 'aabracadabr')
439
439
 
440
- assert "boxed_union_invocations:1 failed", (p3_out.is_a?(Variable_Union1))
441
- assert "boxed_union_invocations:1 failed", (p3_out._disc == 1)
442
- assert "boxed_union_invocations:1 failed", (p3_out.m1 == 321)
440
+ assert 'boxed_union_invocations:1 failed', (p3_out.is_a?(Variable_Union1))
441
+ assert 'boxed_union_invocations:1 failed', (p3_out._disc == 1)
442
+ assert 'boxed_union_invocations:1 failed', (p3_out.m1 == 321)
443
443
 
444
- assert "boxed_union_invocations:1 failed", (retval.is_a?(Variable_Union1))
445
- assert "boxed_union_invocations:1 failed", (retval._disc == 1)
446
- assert "boxed_union_invocations:1 failed", (retval.m1 == 321)
444
+ assert 'boxed_union_invocations:1 failed', (retval.is_a?(Variable_Union1))
445
+ assert 'boxed_union_invocations:1 failed', (retval._disc == 1)
446
+ assert 'boxed_union_invocations:1 failed', (retval.m1 == 321)
447
447
 
448
448
  # test invocation with Ruby types using valuebox values
449
449
  p2_out = nil
450
450
  p3_out = nil
451
451
  p2_out, p3_out = test.union_op4(p1.value, p2.value)
452
452
 
453
- assert "boxed_union_invocations:1 failed", (p2_out.is_a?(Variable_Union1))
454
- assert "boxed_union_invocations:1 failed", (p2_out._disc == 2)
455
- assert "boxed_union_invocations:1 failed", (p2_out.m2 == 'aabracadabr')
453
+ assert 'boxed_union_invocations:1 failed', (p2_out.is_a?(Variable_Union1))
454
+ assert 'boxed_union_invocations:1 failed', (p2_out._disc == 2)
455
+ assert 'boxed_union_invocations:1 failed', (p2_out.m2 == 'aabracadabr')
456
456
 
457
- assert "boxed_union_invocations:1 failed", (p3_out.is_a?(Variable_Union1))
458
- assert "boxed_union_invocations:1 failed", (p3_out._disc == 1)
459
- assert "boxed_union_invocations:1 failed", (p3_out.m1 == 321)
457
+ assert 'boxed_union_invocations:1 failed', (p3_out.is_a?(Variable_Union1))
458
+ assert 'boxed_union_invocations:1 failed', (p3_out._disc == 1)
459
+ assert 'boxed_union_invocations:1 failed', (p3_out.m1 == 321)
460
460
 
461
461
  end
462
462
  end
463
463
 
464
464
  ##
465
465
 
466
- orb = CORBA.ORB_init(["-ORBDebugLevel", OPTIONS[:orb_debuglevel]], 'myORB')
466
+ orb = CORBA.ORB_init(['-ORBDebugLevel', OPTIONS[:orb_debuglevel]], 'myORB')
467
467
 
468
468
  begin
469
469
  obj = orb.string_to_object(OPTIONS[:iorfile])
@@ -7,7 +7,6 @@
7
7
  # included with this program.
8
8
  #
9
9
  # Copyright (c) Remedy IT Expertise BV
10
- # Chamber of commerce Rotterdam nr.276339, The Netherlands
11
10
  #--------------------------------------------------------------------
12
11
 
13
12
  OPTIONS = {
@@ -21,19 +20,19 @@ ARGV.options do |opts|
21
20
  script_name = File.basename($0)
22
21
  opts.banner = "Usage: ruby #{script_name} [options]"
23
22
 
24
- opts.separator ""
23
+ opts.separator ''
25
24
 
26
- opts.on("-d",
27
- "Run with debugging output.",
28
- "Default: false") { OPTIONS[:debug_opt] = '--d 10' }
29
- opts.on("--use-stubs",
30
- "Use stubs generated by RIDL.",
31
- "Default: false (uses embedded IDL)") { OPTIONS[:use_implement] = '' }
25
+ opts.on('-d',
26
+ 'Run with debugging output.',
27
+ 'Default: false') { OPTIONS[:debug_opt] = '--d 10' }
28
+ opts.on('--use-stubs',
29
+ 'Use stubs generated by RIDL.',
30
+ 'Default: false (uses embedded IDL)') { OPTIONS[:use_implement] = '' }
32
31
 
33
- opts.separator ""
32
+ opts.separator ''
34
33
 
35
- opts.on("-h", "--help",
36
- "Show this help message.") { puts opts; exit }
34
+ opts.on('-h', '--help',
35
+ 'Show this help message.') { puts opts; exit }
37
36
 
38
37
  opts.parse!
39
38
  end
@@ -60,7 +59,7 @@ end
60
59
 
61
60
  exrc = clt.wait(400)
62
61
 
63
- if exrc ==0
62
+ if exrc == 0
64
63
  srv.wait(400)
65
64
  else
66
65
  srv.wait_term(400)