Skip to content

Commit 10e553d

Browse files
committed
Added unittest for standard_boolean byref returned parameter
1 parent caa0c4f commit 10e553d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/core_wrapper_features_unittest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
from OCC.BRepGProp import brepgprop_LinearProperties
3939
from OCC.ShapeAnalysis import ShapeAnalysis_Curve
4040
from OCC.BRep import BRep_Builder
41+
from OCC.ChFiDS import ChFiDS_ChamfSpine
4142

4243

4344
class TestWrapperFeatures(unittest.TestCase):
@@ -223,6 +224,14 @@ def testTopoDS_byref_arguments(self):
223224
for child in [cyl1, cyl2]:
224225
bb.Add(c, child)
225226

227+
def test_standard_boolean_byref(self):
228+
'''
229+
Test byref returned standard_boolean
230+
'''
231+
cs = ChFiDS_ChamfSpine()
232+
cs.SetDistAngle(1., 45, True)
233+
assert cs.GetDistAngle() == (1.0, 45.0, True)
234+
226235
def test_dump_to_string(self):
227236
'''
228237
Checks if the pickle python module works for TopoDS_Shapes

0 commit comments

Comments
 (0)