@@ -78,7 +78,7 @@ namespace ECFMPTest::Api {
7878 const auto & param = GetParam ();
7979 nlohmann::json json;
8080 json[" type" ] = param.jsonType ;
81- json[" value" ] = param.jsonValue ;
81+ json[" value" ] = ( int ) ( param.jsonValue * 100 ) ;
8282 auto measure = parser.Parse (json);
8383 EXPECT_NE (measure, nullptr );
8484 EXPECT_EQ (measure->Type (), param.expectedType );
@@ -90,9 +90,14 @@ namespace ECFMPTest::Api {
9090 testing::Values (
9191 FlowMeasureMeasureTestCase<double >{
9292 " max_mach" , " max_mach" , 5.0 , ECFMP::FlowMeasure::MeasureType::MaxMach, 5.0 },
93+ FlowMeasureMeasureTestCase<double >{
94+ " max_mach_less_than_1" , " max_mach" , 0.25 , ECFMP::FlowMeasure::MeasureType::MaxMach, 0.25 },
9395 FlowMeasureMeasureTestCase<double >{
9496 " mach_reduction" , " mach_reduction" , 5.0 , ECFMP::FlowMeasure::MeasureType::MachReduction,
95- 5.0 }
97+ 5.0 },
98+ FlowMeasureMeasureTestCase<double >{
99+ " mach_reduction_less_than_1" , " mach_reduction" , 0.25 ,
100+ ECFMP::FlowMeasure::MeasureType::MachReduction, 0.25 }
96101 ),
97102 [](const testing::TestParamInfo<FlowMeasureMeasureTestCase<double >>& info) {
98103 return info.param .description ;
0 commit comments