5 #include "../algo-common.h" 23 std::map< double, double > temp_to_expected_scale = {
36 for (
auto temp_scale : temp_to_expected_scale)
38 TRACE(
"checking temp = " << temp_scale.first );
39 REQUIRE( syntetic_table.get_thermal_scale( temp_scale.first )
40 == 1. / temp_scale.second );
47 syntetic_table.bins[0].scale = 0;
thermal::thermal_calibration_table create_synthetic_table(const int table_size=29, float min_temp=0, float max_temp=75)
#define REQUIRE_THROWS(...)
TEST_CASE("get_scale","[thermal-loop]")