From ada5f1d6099684c4952a427cd37882e221070451 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Tue, 27 Aug 2019 13:50:25 +0300 Subject: [PATCH] [A] Added test for `cur_cell` function --- tests/bb_tests_cpp/test_table_basic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/bb_tests_cpp/test_table_basic.cpp b/tests/bb_tests_cpp/test_table_basic.cpp index 6bc7fa9..44e5c05 100644 --- a/tests/bb_tests_cpp/test_table_basic.cpp +++ b/tests/bb_tests_cpp/test_table_basic.cpp @@ -308,6 +308,7 @@ void test_cpp_table_changing_cell(void) table << "A"; assert_true(table.cur_row() == 1); assert_true(table.cur_col() == 2); + table.cur_cell() = "432"; std::string table_str = table.to_string(); std::string table_str_etalon = @@ -317,7 +318,7 @@ void test_cpp_table_changing_cell(void) "| | | | |\n" "+---+---+-----+----------+\n" "| | | | |\n" - "| 3 | A | 234 | 3.140000 |\n" + "| 3 | A | 432 | 3.140000 |\n" "| | | | |\n" "+---+---+-----+----------+\n" "| | | | |\n"