Salome HOME
Some useful tools for MEDCouplingMappedExtrudedMesh users that needs to store it...
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingBasicsTest3.py
index 4b84e34a637a5c2eb5493572b69a064c2b11d752..9794aa4c185f5df0ca68a935494fd6da1afd0768 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: utf-8 -*-
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -1778,6 +1778,12 @@ class MEDCouplingBasicsTest3(unittest.TestCase):
         #
         d.setIJ(6,0,9);
         self.assertRaises(InterpKernelException,d.splitByValueRange,val2);
+        # non regression test in python wrapping
+        rg=DataArrayInt([0,10,29,56,75,102,121,148,167,194,213,240,259,286,305,332,351,378,397,424,443,470,489,516])
+        a,b,c=DataArrayInt([75]).splitByValueRange(rg)
+        assert(a.isEqual(DataArrayInt([4])))
+        assert(b.isEqual(DataArrayInt([0])))
+        assert(c.isEqual(DataArrayInt([4])))
         pass
 
     def testUMeshSplitProfilePerType1(self):