Skip to content

Commit 2fe2ecc

Browse files
committed
update tests of input parameters
1 parent ab43e04 commit 2fe2ecc

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

source/source_io/test_serial/read_input_item_test.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -822,12 +822,6 @@ TEST_F(InputTest, Item_test)
822822
it->second.read_value(it->second, param);
823823
EXPECT_EQ(param.input.out_dmk[0], 1);
824824
EXPECT_EQ(param.input.out_dmk[1], 2);
825-
826-
it->second.str_values = {"1", "2", "3"};
827-
testing::internal::CaptureStdout();
828-
EXPECT_EXIT(it->second.read_value(it->second, param), ::testing::ExitedWithCode(1), "");
829-
output = testing::internal::GetCapturedStdout();
830-
EXPECT_THAT(output, testing::HasSubstr("NOTICE"));
831825
}
832826
{ // out_dmr
833827
auto it = find_label("out_dmr", readinput.input_lists);
@@ -840,12 +834,6 @@ TEST_F(InputTest, Item_test)
840834
it->second.read_value(it->second, param);
841835
EXPECT_EQ(param.input.out_dmr[0], 1);
842836
EXPECT_EQ(param.input.out_dmr[1], 2);
843-
844-
it->second.str_values = {"1", "2", "3"};
845-
testing::internal::CaptureStdout();
846-
EXPECT_EXIT(it->second.read_value(it->second, param), ::testing::ExitedWithCode(1), "");
847-
output = testing::internal::GetCapturedStdout();
848-
EXPECT_THAT(output, testing::HasSubstr("NOTICE"));
849837
}
850838
{ // method_sto
851839
auto it = find_label("method_sto", readinput.input_lists);
@@ -958,12 +946,6 @@ TEST_F(InputTest, Item_test)
958946
EXPECT_EQ(param.input.out_mat_hs[0], 1);
959947
EXPECT_EQ(param.input.out_mat_hs[1], 2);
960948

961-
it->second.str_values = {"1", "2", "3"};
962-
testing::internal::CaptureStdout();
963-
EXPECT_EXIT(it->second.read_value(it->second, param), ::testing::ExitedWithCode(1), "");
964-
output = testing::internal::GetCapturedStdout();
965-
EXPECT_THAT(output, testing::HasSubstr("NOTICE"));
966-
967949
param.input.out_mat_hs = {0};
968950
param.input.qo_switch = true;
969951
it->second.reset_value(it->second, param);

0 commit comments

Comments
 (0)