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

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

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

revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC
# Line 230  void DataTaggedTestCase::testAll() { Line 230  void DataTaggedTestCase::testAll() {
230      myData.addTaggedValues(keys,values);      myData.addTaggedValues(keys,values);
231      assert(myData.getDataPointByTag(1)==myView);      assert(myData.getDataPointByTag(1)==myView);
232      cout << "\tTest addition of further tags." << endl;      cout << "\tTest addition of further tags." << endl;
233      keys.clear();      keys.resize(0);
234      keys.push_back(3);      keys.push_back(3);
235      for (int i=0;i<myView.getShape()[0];++i) {      for (int i=0;i<myView.getShape()[0];++i) {
236        myView(i)=i+1.5;        myView(i)=i+1.5;
# Line 293  void DataTaggedTestCase::testAll() { Line 293  void DataTaggedTestCase::testAll() {
293      viewShape.push_back(1);      viewShape.push_back(1);
294      keys.clear();      keys.clear();
295      values.clear();      values.clear();
296      viewData.clear();      viewData.resize(0);
297      for (int i=0;i<viewShape[0];++i) {      for (int i=0;i<viewShape[0];++i) {
298        viewData.push_back(0.0);        viewData.push_back(0.0);
299      }      }

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

  ViewVC Help
Powered by ViewVC 1.1.26