/[escript]/branches/arrexp_2137_win_merge/escript/test/SharedDataTestCase.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/test/SharedDataTestCase.cpp

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

revision 2224 by jfenwick, Wed Jan 21 03:39:43 2009 UTC revision 2227 by jfenwick, Tue Jan 27 04:11:38 2009 UTC
# Line 102  void SharedDataTestCase::testGetDataAtOf Line 102  void SharedDataTestCase::testGetDataAtOf
102    Data d((double)42,DataTypes::scalarShape);    Data d((double)42,DataTypes::scalarShape);
103    Data L=d.delay();    Data L=d.delay();
104    // now change the data directly    // now change the data directly
105      d.requireWrite();
106    d.getDataAtOffsetRW(0)=17;    d.getDataAtOffsetRW(0)=17;
107    assert(L.getDataAtOffsetRO(0)==42);    assert(L.getDataAtOffsetRO(0)==42);
108  }  }
# Line 111  void SharedDataTestCase::testGetDataPoin Line 112  void SharedDataTestCase::testGetDataPoin
112    Data d((double)42,DataTypes::scalarShape);    Data d((double)42,DataTypes::scalarShape);
113    Data L=d.delay();    Data L=d.delay();
114    // now change the data directly    // now change the data directly
115      d.requireWrite();
116    d.getDataPointRW(0,0)=17;    d.getDataPointRW(0,0)=17;
117    assert(L.getDataPointRO(0,0)==42);    assert(L.getDataPointRO(0,0)==42);
118  }  }
# Line 149  TestSuite* SharedDataTestCase::suite () Line 151  TestSuite* SharedDataTestCase::suite ()
151    testSuite->addTest (new TestCaller< SharedDataTestCase>("getDataPoint",&SharedDataTestCase::testGetDataPoint));    testSuite->addTest (new TestCaller< SharedDataTestCase>("getDataPoint",&SharedDataTestCase::testGetDataPoint));
152    testSuite->addTest (new TestCaller< SharedDataTestCase>("getSampleRW",&SharedDataTestCase::testGetSampleRW));    testSuite->addTest (new TestCaller< SharedDataTestCase>("getSampleRW",&SharedDataTestCase::testGetSampleRW));
153    return testSuite;    return testSuite;
 }  
154    }

Legend:
Removed from v.2224  
changed lines
  Added in v.2227

  ViewVC Help
Powered by ViewVC 1.1.26