/[escript]/branches/arrayview_from_1695_trunk/escript/test/DataArrayViewTestCase.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/test/DataArrayViewTestCase.cpp

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

revision 682 by robwdcock, Mon Mar 27 02:43:09 2006 UTC revision 700 by gross, Thu Apr 6 00:13:40 2006 UTC
# Line 1789  void DataArrayViewTestCase::testUnaryOp( Line 1789  void DataArrayViewTestCase::testUnaryOp(
1789        // check the results        // check the results
1790        for (int i=0;i<shape[0];i++) {        for (int i=0;i<shape[0];i++) {
1791          for (int j=0;j<shape[1];j++) {          for (int j=0;j<shape[1];j++) {
1792            assert(dataView(i,j)==std::sqrt((double)dataView.index(i,j)));            assert(std::abs(dataView(i,j)-std::sqrt((double)dataView.index(i,j)))<1.e-10);
1793          }          }
1794        }        }
1795    

Legend:
Removed from v.682  
changed lines
  Added in v.700

  ViewVC Help
Powered by ViewVC 1.1.26