ml_tensors_data_get_tensor_data (output, 0, (void **) &output_buf,
&data_size);
- EXPECT_EQ (output_buf[0], 3.0f);
+ EXPECT_FLOAT_EQ (output_buf[0], 3.0f);
EXPECT_EQ (data_size, sizeof (float));
ml_tensors_info_get_count (out_info, &tmp_count);
ml_tensors_data_get_tensor_data (output, 0, (void **) &output_buf2,
&data_size);
- EXPECT_EQ (output_buf2[0], 3.0f);
- EXPECT_EQ (output_buf2[1], 4.0f);
- EXPECT_EQ (output_buf2[2], 5.0f);
- EXPECT_EQ (output_buf2[3], 6.0f);
- EXPECT_EQ (output_buf2[4], 7.0f);
+ EXPECT_FLOAT_EQ (output_buf2[0], 3.0f);
+ EXPECT_FLOAT_EQ (output_buf2[1], 4.0f);
+ EXPECT_FLOAT_EQ (output_buf2[2], 5.0f);
+ EXPECT_FLOAT_EQ (output_buf2[3], 6.0f);
+ EXPECT_FLOAT_EQ (output_buf2[4], 7.0f);
EXPECT_EQ (data_size, 5 * sizeof (float));
ml_tensors_info_get_count (out_info, &tmp_count);
ml_tensors_data_get_tensor_data (output, 0, (void **) &output_buf,
&data_size);
- EXPECT_EQ (output_buf[0], 3.0f);
+ EXPECT_FLOAT_EQ (output_buf[0], 3.0f;
EXPECT_EQ (data_size, sizeof (float));
ml_tensors_info_get_count (out_info, &tmp_count);
ml_tensors_data_get_tensor_data (output, 0, (void **) &output_buf2,
&data_size);
- EXPECT_EQ (output_buf2[0], 3.0f);
- EXPECT_EQ (output_buf2[1], 4.0f);
- EXPECT_EQ (output_buf2[2], 5.0f);
- EXPECT_EQ (output_buf2[3], 6.0f);
- EXPECT_EQ (output_buf2[4], 7.0f);
+ EXPECT_FLOAT_EQ (output_buf2[0], 3.0f);
+ EXPECT_FLOAT_EQ (output_buf2[1], 4.0f);
+ EXPECT_FLOAT_EQ (output_buf2[2], 5.0f);
+ EXPECT_FLOAT_EQ (output_buf2[3], 6.0f);
+ EXPECT_FLOAT_EQ (output_buf2[4], 7.0f);
EXPECT_EQ (data_size, 5 * sizeof (float));
ml_tensors_info_get_count (out_info, &tmp_count);