Skip to content

Commit

Permalink
Update integrator_test.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
octoflar authored Jun 20, 2024
1 parent ae49b12 commit 6750f85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/cxx/core/integrator_test.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ using especia::Integrator;

class Integrator_Test : public Unit_Test
{
public:
Integrator_Test(Integrator<double>::Formula p, Integrator<double>::Formula q) : integrator(p, q){ }
~Integrator_Test() = default;

private:
void
test_integrate_constant ()
Expand Down Expand Up @@ -143,12 +147,11 @@ class Integrator_Test : public Unit_Test
run (this, &Integrator_Test::test_integrate_absorption_infinite);
}

const Integrator<double> integrator
= Integrator<> (Integrator<>::Formula::Q13, Integrator<>::Formula::Q41);
const Integrator<double> integrator;
};

int
main ()
{
return Integrator_Test ().run_testsuite ();
return Integrator_Test (Integrator<double>::Formula::Q27, Integrator<double>::Formula::Q41).run_testsuite () and Integrator_Test (Integrator<double>::Formula::Q13, Integrator<double>::Formula::Q19).run_testsuite ();
}

0 comments on commit 6750f85

Please sign in to comment.