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

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

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

revision 110 by jgs, Mon Feb 14 04:14:42 2005 UTC revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC
# Line 71  void DataExpandedTestCase::testAll() { Line 71  void DataExpandedTestCase::testAll() {
71    assert(dataView.getRank()==shape.size());    assert(dataView.getRank()==shape.size());
72    assert(dataView.noValues()==shape[0]*1);    assert(dataView.noValues()==shape[0]*1);
73    assert(dataView.getShape()[0]==shape[0]);    assert(dataView.getShape()[0]==shape[0]);
74      assert(testData.getNumDPPSample()==1);
75      assert(testData.getNumSamples()==1);
76      assert(testData.validSamplePointNo(testData.getNumDPPSample()-1));
77      assert(testData.validSampleNo(testData.getNumSamples()-1));
78    
79    //    //
80    // Test copy constructor    // Test copy constructor
# Line 90  void DataExpandedTestCase::testAll() { Line 94  void DataExpandedTestCase::testAll() {
94    assert(dataView.getRank()==shape.size());    assert(dataView.getRank()==shape.size());
95    assert(dataView.noValues()==shape[0]*1);    assert(dataView.noValues()==shape[0]*1);
96    assert(dataView.getShape()[0]==shape[0]);    assert(dataView.getShape()[0]==shape[0]);
97      assert(testData2.getNumDPPSample()==1);
98      assert(testData2.getNumSamples()==1);
99      assert(testData2.validSamplePointNo(testData2.getNumDPPSample()-1));
100      assert(testData2.validSampleNo(testData2.getNumSamples()-1));
101    
102  }  }
103    
# Line 141  void DataExpandedTestCase::testReshape() Line 149  void DataExpandedTestCase::testReshape()
149    assert(dataView.getShape()[0]==shape[0]);    assert(dataView.getShape()[0]==shape[0]);
150    assert(dataView.getShape()[1]==shape[1]);    assert(dataView.getShape()[1]==shape[1]);
151    assert(dataView.getShape()[2]==shape[2]);    assert(dataView.getShape()[2]==shape[2]);
152      assert(testData.getNumDPPSample()==1);
153      assert(testData.getNumSamples()==1);
154      assert(testData.validSamplePointNo(testData.getNumDPPSample()-1));
155      assert(testData.validSampleNo(testData.getNumSamples()-1));
156    
157    //    //
158    // Test reshape - illegal    // Test reshape - illegal

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

  ViewVC Help
Powered by ViewVC 1.1.26