]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Non regression test for detected bug (no localization load) in MEDFileData constructor.
authorageay <ageay>
Tue, 27 Sep 2011 14:39:55 +0000 (14:39 +0000)
committerageay <ageay>
Tue, 27 Sep 2011 14:39:55 +0000 (14:39 +0000)
src/MEDLoader/Swig/MEDLoaderTest3.py

index 9680b6338b0a4a99acee8b12b68985f3208c83ea..5018668c2757e40be73c7ca9f5d207b6fe5a2575 100644 (file)
@@ -863,6 +863,12 @@ class MEDLoaderTest(unittest.TestCase):
         f4=ff3.getFieldAtTopLevel(ON_CELLS,1,2)
         self.assertTrue(f4.getArray().isEqual(f1.getArray(),1e-12))
         pass
+
+    def testMEDFieldBug1(self):
+        fname="Pyfile13.med"
+        d=MEDFileData.New(fname)
+        self.assertEqual(('GP_MyFirstFieldOnGaussPoint0', 'GP_MyFirstFieldOnGaussPoint1', 'GP_MyFirstFieldOnGaussPoint2'),d.getFields().getFieldAtPos(0).getLocs())
+        pass
     pass
 
 unittest.main()