From adebf9ae1feb7cea601f55e2629598657410098e Mon Sep 17 00:00:00 2001 From: cvw Date: Thu, 16 Feb 2012 14:11:49 +0000 Subject: [PATCH] *** empty log message *** --- src/MEDCoupling/Test/MEDCouplingBasicsTest1.cxx | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2