From: cvw Date: Thu, 16 Feb 2012 14:11:49 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V6_main_FINAL~855 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=adebf9ae1feb7cea601f55e2629598657410098e;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx index 88451825d..48f9d8fa5 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx @@ -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);