/[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 97 by jgs, Tue Dec 14 05:39:33 2004 UTC revision 106 by jgs, Thu Dec 23 07:20:12 2004 UTC
# Line 382  void DataTestCase::testOperations() { Line 382  void DataTestCase::testOperations() {
382    viewShape.push_back(2);    viewShape.push_back(2);
383    viewShape.push_back(3);    viewShape.push_back(3);
384    
385    Data base(2.0,viewShape,FunctionSpace(),false);    Data base(2.0,viewShape,FunctionSpace(),true);
386    Data power(3.0,viewShape,FunctionSpace(),false);    Data power(3.0,viewShape,FunctionSpace(),true);
387    
388    cout << "\tPerform basic exercises of unary operations" << endl;    cout << "\tPerform basic exercises of unary operations" << endl;
389    
# Line 408  void DataTestCase::testOperations() { Line 408  void DataTestCase::testOperations() {
408    result.copy(base.abs());    result.copy(base.abs());
409    assert(true);    assert(true);
410    
411    result.copy(base.maxval());    result.copy(base.sign());
412    assert(true);    assert(true);
413    
414    result.copy(base.minval());    result.copy(base.exp());
415    assert(true);    assert(true);
416    
417    result.copy(base.length());    result.copy(base.sqrt());
418    assert(true);    assert(true);
419    
420    result.copy(base.sign());    result.copy(base.neg());
421    assert(true);    assert(true);
422    
423    result.copy(base.transpose(0));    result.copy(base.pos());
424    assert(true);    assert(true);
425    
426    result.copy(base.trace());    result.copy(base.minval());
427    assert(true);    assert(true);
428    
429    result.copy(base.exp());    result.copy(base.maxval());
430    assert(true);    assert(true);
431    
432    result.copy(base.sqrt());    result.copy(base.length());
433    assert(true);    assert(true);
434    
435    result.copy(base.neg());    result.copy(base.trace());
436    assert(true);    assert(true);
437    
438    result.copy(base.pos());    //result.copy(base.transpose(0));
439    assert(true);    //assert(true);
440    
441  }  }
442    
443  TestSuite* DataTestCase::suite ()  TestSuite* DataTestCase::suite ()

Legend:
Removed from v.97  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.26