/[escript]/trunk/escript/test/Data/DataTestCase.cpp
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC revision 102 by jgs, Wed Dec 15 07:08:39 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;
226    exData.copyWithMask(result, exData.wherePositive());    exData.copyWithMask(result, exData.wherePositive());
# 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 << "\tTest powD,sin,cos,tan,log,ln operations" << endl;    cout << "\tPerform basic exercises of unary 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());
394      assert(true);
395    
396    result.copy(base.cos());    result.copy(base.cos());
397      assert(true);
398    
399    result.copy(base.tan());    result.copy(base.tan());
400      assert(true);
401    
402    result.copy(base.log());    result.copy(base.log());
403      assert(true);
404    
405    result.copy(base.ln());    result.copy(base.ln());
406      assert(true);
407    
408      result.copy(base.abs());
409      assert(true);
410    
411      result.copy(base.maxval());
412      assert(true);
413    
414      result.copy(base.minval());
415      assert(true);
416    
417      result.copy(base.length());
418      assert(true);
419    
420      result.copy(base.sign());
421      assert(true);
422    
423      result.copy(base.transpose(0));
424      assert(true);
425    
426      result.copy(base.trace());
427      assert(true);
428    
429      result.copy(base.exp());
430      assert(true);
431    
432      result.copy(base.sqrt());
433      assert(true);
434    
435      result.copy(base.neg());
436      assert(true);
437    
438      result.copy(base.pos());
439      assert(true);
440  }  }
441    
442  TestSuite* DataTestCase::suite ()  TestSuite* DataTestCase::suite ()

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

  ViewVC Help
Powered by ViewVC 1.1.26