/[escript]/trunk/escript/test/SharedDataTestCase.cpp
ViewVC logotype

Diff of /trunk/escript/test/SharedDataTestCase.cpp

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

revision 2222 by jfenwick, Tue Jan 20 04:52:39 2009 UTC revision 2224 by jfenwick, Wed Jan 21 03:39:43 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.getDataAtOffset(0)=17;    d.getDataAtOffsetRW(0)=17;
106    assert(L.getDataAtOffset(0)==42);    assert(L.getDataAtOffsetRO(0)==42);
107  }  }
108    
109  void SharedDataTestCase::testGetDataPoint()  void SharedDataTestCase::testGetDataPoint()
# Line 111  void SharedDataTestCase::testGetDataPoin Line 111  void SharedDataTestCase::testGetDataPoin
111    Data d((double)42,DataTypes::scalarShape);    Data d((double)42,DataTypes::scalarShape);
112    Data L=d.delay();    Data L=d.delay();
113    // now change the data directly    // now change the data directly
114    d.getDataPoint(0,0)=17;    d.getDataPointRW(0,0)=17;
115    assert(L.getDataPoint(0,0)==42);    assert(L.getDataPointRO(0,0)==42);
116  }  }
117    
118  void SharedDataTestCase::testGetSampleRW()  void SharedDataTestCase::testGetSampleRW()

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

  ViewVC Help
Powered by ViewVC 1.1.26