Diff of /trunk/esys2/escript/test/Data/DataTestCase.cpp

revision 99 by jgs, Tue Dec 14 05:39:33 2004 UTC revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC
# Line 220  void DataTestCase::testMore() { Line 220  void DataTestCase::testMore() {
220
221    cout << "\tExercise wherePositive method" << endl;    cout << "\tExercise wherePositive method" << endl;
222    assert(!exData.wherePositive().isEmpty());    assert(!exData.wherePositive().isEmpty());
223    //assert(exData.wherePositive()==exData.wherePositive());    assert(exData.wherePositive()==exData.wherePositive());
224
225    cout << "\tExercise copyWithMask method" << endl;    cout << "\tExercise copyWithMask method" << endl;
# Line 385  void DataTestCase::testOperations() { Line 385  void DataTestCase::testOperations() {
385    Data base(2.0,viewShape,FunctionSpace(),false);    Data base(2.0,viewShape,FunctionSpace(),false);
386    Data power(3.0,viewShape,FunctionSpace(),false);    Data power(3.0,viewShape,FunctionSpace(),false);
387
388    cout << "\tPerform basic exercises of unary operations" << endl;    cout << "\tTest powD,sin,cos,tan,log,ln operations" << endl;
389
390    Data result(base.powD(power));    Data result(base.powD(power));
391    assert(result.getDataPoint(0,0)(0,0) == 8);    assert(result.getDataPoint(0,0)(0,0) == 8);
392
393    result.copy(base.sin());    result.copy(base.sin());
assert(true);

394    result.copy(base.cos());    result.copy(base.cos());
assert(true);

395    result.copy(base.tan());    result.copy(base.tan());
assert(true);

396    result.copy(base.log());    result.copy(base.log());
assert(true);

397    result.copy(base.ln());    result.copy(base.ln());
assert(true);

result.copy(base.abs());
assert(true);

result.copy(base.maxval());
assert(true);

result.copy(base.minval());
assert(true);

result.copy(base.length());
assert(true);

result.copy(base.sign());
assert(true);

result.copy(base.transpose(0));
assert(true);

result.copy(base.trace());
assert(true);

result.copy(base.exp());
assert(true);

result.copy(base.sqrt());
assert(true);

result.copy(base.neg());
assert(true);

result.copy(base.pos());
assert(true);
398  }  }
399
400  TestSuite* DataTestCase::suite ()  TestSuite* DataTestCase::suite ()

Legend:
 Removed from v.99 changed lines Added in v.100