Skip to content

Commit

Permalink
Re #7424. A better way of setting variable to infinity.
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellTaylor committed Jul 10, 2013
1 parent 192f8bd commit 5fd9caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/CurveFitting/test/FitMWTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ class FitMWTest : public CxxTest::TestSuite
auto ws = createTestWorkspace(false);
const double zero = 0.0;
const double one = 1.0;
ws->dataY(0)[3] = 1.0 / zero;
ws->dataY(0)[3] = std::numeric_limits<double>::infinity();
ws->dataY(0)[5] = log(-one);
ws->dataE(0)[7] = 0;
ws->dataE(0)[9] = 1.0 / zero;
ws->dataE(0)[9] = std::numeric_limits<double>::infinity();
ws->dataE(0)[11] = log(-one);

FunctionDomain_sptr domain;
Expand Down

0 comments on commit 5fd9caa

Please sign in to comment.