Skip to content

Commit

Permalink
adding tests for negative threshold corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed May 2, 2017
1 parent b609d1b commit 2274e2d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions test/test_threshold_corrections.cpp
Expand Up @@ -23,6 +23,23 @@ BOOST_AUTO_TEST_CASE( test_get )
BOOST_CHECK_EQUAL(tc.get(), 876543210);
}

BOOST_AUTO_TEST_CASE( test_get_negative )
{
Threshold_corrections tc;

tc.alpha_em = -0;
tc.sin_theta_w = -1;
tc.alpha_s = -2;
tc.mz = -3;
tc.mw = -4;
tc.mh = -5;
tc.mt = -6;
tc.mb = -7;
tc.mtau = -8;

BOOST_CHECK_EQUAL(tc.get(), 0);
}

BOOST_AUTO_TEST_CASE( test_set )
{
Threshold_corrections tc;
Expand All @@ -38,3 +55,19 @@ BOOST_AUTO_TEST_CASE( test_set )
BOOST_CHECK_EQUAL(tc.mb , 7);
BOOST_CHECK_EQUAL(tc.mtau , 8);
}

BOOST_AUTO_TEST_CASE( test_set_negative )
{
Threshold_corrections tc;
tc.set(-876543210);

BOOST_CHECK_EQUAL(tc.alpha_em , 0);
BOOST_CHECK_EQUAL(tc.sin_theta_w , 1);
BOOST_CHECK_EQUAL(tc.alpha_s , 2);
BOOST_CHECK_EQUAL(tc.mz , 3);
BOOST_CHECK_EQUAL(tc.mw , 4);
BOOST_CHECK_EQUAL(tc.mh , 5);
BOOST_CHECK_EQUAL(tc.mt , 6);
BOOST_CHECK_EQUAL(tc.mb , 7);
BOOST_CHECK_EQUAL(tc.mtau , 8);
}

0 comments on commit 2274e2d

Please sign in to comment.