[A] Added tests for new table navigation functions

This commit is contained in:
seleznevae
2019-08-27 13:48:36 +03:00
parent e6e7a08c0f
commit e8d1ba2293
5 changed files with 80 additions and 0 deletions

View File

@@ -945,18 +945,36 @@ public:
return (*this)[row_idx][col_idx];
}
/**
* Get column number of the current cell.
*
* @return
* Column number of the current cell.
*/
size_t
cur_col()
{
return ft_cur_col(table_);
}
/**
* Get row number of the current cell.
*
* @return
* Row number of the current cell.
*/
size_t
cur_row()
{
return ft_cur_row(table_);
}
/**
* Get current cell.
*
* @return
* Current cell.
*/
class table_cell
cur_cell()
{