/[escript]/branches/more_shared_ptrs_from_1812/escript/test/FunctionSpaceTestCase.cpp
ViewVC logotype

Diff of /branches/more_shared_ptrs_from_1812/escript/test/FunctionSpaceTestCase.cpp

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

revision 1820 by jfenwick, Fri Sep 26 00:58:05 2008 UTC revision 1821 by jfenwick, Wed Oct 1 04:46:59 2008 UTC
# Line 56  void FunctionSpaceTestCase::testAll() { Line 56  void FunctionSpaceTestCase::testAll() {
56    cout << "\tTest FunctionSpace constructor." << endl;    cout << "\tTest FunctionSpace constructor." << endl;
57    
58    // Test constructor    // Test constructor
59    NullDomain nullDomain;    NullDomain* nullDomain=new NullDomain();  // the shared ptr will deal with it
60    int testfunctionSpaceType = nullDomain.getFunctionCode();    int testfunctionSpaceType = nullDomain->getFunctionCode();
61    
62    FunctionSpace testFunctionSpace2(nullDomain, testfunctionSpaceType);    FunctionSpace testFunctionSpace2(*nullDomain, testfunctionSpaceType);
63        
64    assert(testFunctionSpace1.getTypeCode()==testfunctionSpaceType);    assert(testFunctionSpace1.getTypeCode()==testfunctionSpaceType);
65    assert(testFunctionSpace2.getDomain()==nullDomain);    assert(*(testFunctionSpace2.getDomain())==*nullDomain);
66    assert(testFunctionSpace1.getDim()==1);    assert(testFunctionSpace1.getDim()==1);
67    assert(testFunctionSpace1==testFunctionSpace1);    assert(testFunctionSpace1==testFunctionSpace1);
68    assert(!(testFunctionSpace1!=testFunctionSpace1));    assert(!(testFunctionSpace1!=testFunctionSpace1));

Legend:
Removed from v.1820  
changed lines
  Added in v.1821

  ViewVC Help
Powered by ViewVC 1.1.26