Changeset 1943


Ignore:
Timestamp:
May 6, 2009, 11:44:47 AM (12 years ago)
Author:
Jari Häkkinen
Message:

Addresses #535. Added a test that fails on nan

Location:
branches/0.5-stable/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.5-stable/test/Makefile.am

    r1850 r1943  
    6565
    6666# tests not passing through yet
    67 XFAIL_TESTS =
     67XFAIL_TESTS = normalization_test
    6868
    6969TESTS += documentation_test.sh
  • branches/0.5-stable/test/normalization_test.cc

    r1797 r1943  
    206206  suite.err() << "Testing with missing value in source\n";
    207207  // adding a missing value
    208   src_w.insert(src_w.begin(),
    209                DataWeight(std::numeric_limits<double>::quiet_NaN(), 0.0));
     208  std::vector<utility::DataWeight>::iterator MWi=src_w.begin();
     209  MWi+=5;
     210  src_w.insert(MWi, DataWeight(std::numeric_limits<double>::quiet_NaN(), 0.0));
    210211  std::vector<utility::DataWeight> result_w2(src_w.size());
    211212  qQN(src_w.begin(), src_w.end(), result_w2.begin());
Note: See TracChangeset for help on using the changeset viewer.