/[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 949 by gross, Thu Sep 21 05:29:42 2006 UTC revision 950 by gross, Tue Feb 6 07:01:11 2007 UTC
# Line 539  void DataExpandedTestCase::testRefValue( Line 539  void DataExpandedTestCase::testRefValue(
539    //    //
540    // Try out ref value methods    // Try out ref value methods
541    
542    dataExp.getRefValue(1,data2);    dataExp.getValueByReferenceNumber(1,data2);
543    
544    // check the values loaded into data2 by getRefValue    // check the values loaded into data2 by getValueByReferenceNumber
545    // match the values in dataExp    // match the values in dataExp
546    assert(data2.getView()(0)==0.0);    assert(data2.getView()(0)==0.0);
547    assert(data2.getView()(1)==1.0);    assert(data2.getView()(1)==1.0);
# Line 551  void DataExpandedTestCase::testRefValue( Line 551  void DataExpandedTestCase::testRefValue(
551    data2.getView()(1)=4.0;    data2.getView()(1)=4.0;
552    data2.getView()(2)=5.0;    data2.getView()(2)=5.0;
553    
554    dataExp.setRefValue(1,data2);    dataExp.setValueByReferenceNumber(1,data2);
555    
556    // check the values now in dataExp match the values    // check the values now in dataExp match the values
557    // that were supplied in data2    // that were supplied in data2

Legend:
Removed from v.949  
changed lines
  Added in v.950

  ViewVC Help
Powered by ViewVC 1.1.26