]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorcvw <cvw>
Thu, 16 Feb 2012 14:11:49 +0000 (14:11 +0000)
committercvw <cvw>
Thu, 16 Feb 2012 14:11:49 +0000 (14:11 +0000)
src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx

index 88451825dfd9713b3de98697fec662403ae0325a..48f9d8fa554a6226534743e70f2ad4bd26d29aa4 100644 (file)
@@ -1567,6 +1567,9 @@ void MEDCouplingBasicsTest1::testApplyFunc2()
   CPPUNIT_ASSERT_EQUAL(9,f1->getNumberOfTuples());
   //
   MEDCouplingFieldDouble *f2=f1->clone(true);
+  CPPUNIT_ASSERT_THROW(f2->applyFunc(1,"a+b+c+d"),INTERP_KERNEL::Exception);
+  CPPUNIT_ASSERT_THROW(f2->applyFunc(1,"a/0"),INTERP_KERNEL::Exception);
+  CPPUNIT_ASSERT_THROW(f2->applyFunc("a/0"),INTERP_KERNEL::Exception);
   f2->applyFunc("abs(u)^2.4+2*u");
   CPPUNIT_ASSERT(f1->getTypeOfField()==ON_NODES);
   CPPUNIT_ASSERT(f1->getTimeDiscretization()==NO_TIME);