From e8363d432a90799625adbac436db981bbaf17356 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Mon, 20 Dec 2021 22:17:18 +0100
Subject: [PATCH] energy threshold tests

---
 tests/framework/testParticles.cpp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/framework/testParticles.cpp b/tests/framework/testParticles.cpp
index 9c25eef2e..52648ba71 100644
--- a/tests/framework/testParticles.cpp
+++ b/tests/framework/testParticles.cpp
@@ -88,13 +88,18 @@ TEST_CASE("ParticleProperties", "[Particles]") {
           (Approx(2.1970332555864364e-06).epsilon(1e-5)));
   }
 
-  SECTION("Energy threshold") {
+  SECTION("Energy thresholds") {
     //! by default energy thresholds are set to zero
-    CHECK(get_kinetic_energy_propagation_threshold(Electron::code) == 0_GeV);
-
+    CHECK(get_kinetic_energy_propagation_threshold(Electron::code) == 1_GeV);
     set_kinetic_energy_propagation_threshold(Electron::code, 10_GeV);
     CHECK_FALSE(get_kinetic_energy_propagation_threshold(Code::Electron) == 1_GeV);
     CHECK(get_kinetic_energy_propagation_threshold(Code::Electron) == 10_GeV);
+
+    //! by default energy thresholds are set to zero
+    CHECK(get_energy_production_threshold(Neutron::code) == 1_MeV);
+    set_energy_production_threshold(Neutron::code, 1_GeV);
+    CHECK_FALSE(get_energy_production_threshold(Code::Neutron) == 1_MeV);
+    CHECK(get_energy_production_threshold(Code::Neutron) == 1_GeV);
   }
 
   SECTION("Particle groups: electromagnetic") {
-- 
GitLab