~vpec/maus/tof_calib_read

« back to all changes in this revision

Viewing changes to tests/cpp_unit/Optics/PolynomialOpticsModelTest.cc

  • Committer: Adam Dobbs
  • Date: 2015-06-26 14:33:50 UTC
  • mfrom: (659.1.113 release-candidate)
  • Revision ID: phuccj@gmail.com-20150626143350-m56pbthi31ahqvxj
Tags: MAUS-v0.9.6
MAUS-v0.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
       ++iter) {
334
334
    (*config)["PolynomialOpticsModel_algorithm"] = Json::Value(*iter);
335
335
    PolynomialOpticsModel optics_model(config);
336
 
    bool algorithm_failed = false;
337
 
    try {
338
 
      optics_model.Build();
339
 
    } catch (MAUS::Exception exc) {
340
 
      algorithm_failed = true;
341
 
      std::cout << "DEBUG PolynomialOpticsModelTest_UnsupportedAlgorithms: "
342
 
                << "Algorithm \"" << *iter << "\" failed." << std::endl;
343
 
    }
344
 
    EXPECT_TRUE(algorithm_failed);
 
336
    optics_model.Build();
 
337
    EXPECT_EQ(optics_model.GetAvailableMapPositions().size(), 0);
345
338
  }
346
339
}