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

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

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

revision 949 by ksteube, Wed Aug 9 00:49:56 2006 UTC revision 950 by gross, Tue Feb 6 07:01:11 2007 UTC
# Line 1028  void DataTestCase::testRefValue() { Line 1028  void DataTestCase::testRefValue() {
1028    boost::python::numeric::array num_array(1.0);    boost::python::numeric::array num_array(1.0);
1029    
1030    try {    try {
1031        emptyData.getRefValue(ref,num_array);        emptyData.getValueByReferenceNumber(ref,num_array);
1032        assert(false);        assert(false);
1033    }    }
1034    catch (EsysException& e) {    catch (EsysException& e) {
1035        assert(true);        assert(true);
1036    }    }
1037    try {    try {
1038        emptyData.setRefValue(ref,num_array);        emptyData.setValueByReferenceNumber(ref,num_array);
1039        assert(false);        assert(false);
1040    }    }
1041    catch (EsysException& e) {    catch (EsysException& e) {
# Line 1044  void DataTestCase::testRefValue() { Line 1044  void DataTestCase::testRefValue() {
1044    
1045    // Check assertions are thrown for RefValue methods on DataConstant    // Check assertions are thrown for RefValue methods on DataConstant
1046    try {    try {
1047        constantData.getRefValue(ref,num_array);        constantData.getValueByReferenceNumber(ref,num_array);
1048        assert(false);        assert(false);
1049    }    }
1050    catch (EsysException& e) {    catch (EsysException& e) {
1051        assert(true);        assert(true);
1052    }    }
1053    try {    try {
1054        constantData.setRefValue(ref,num_array);        constantData.setValueByReferenceNumber(ref,num_array);
1055        assert(false);        assert(false);
1056    }    }
1057    catch (EsysException& e) {    catch (EsysException& e) {
# Line 1059  void DataTestCase::testRefValue() { Line 1059  void DataTestCase::testRefValue() {
1059    }    }
1060    
1061    // Check calls to RefValue methods on DataExpanded    // Check calls to RefValue methods on DataExpanded
1062    expandedData.getRefValue(ref,num_array);    expandedData.getValueByReferenceNumber(ref,num_array);
1063    expandedData.setRefValue(ref,num_array);    expandedData.setValueByReferenceNumber(ref,num_array);
1064    
1065  }  }
1066    

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

  ViewVC Help
Powered by ViewVC 1.1.26