Implement ft_col_count() along with corresponding unit tests

This pairs with the existing ft_row_count() using the same column
counting method used elsewhere in the code (i.e., iterate over rows
and find the biggest).

Added unit tests for ft_row_count(), ft_col_count(), ft_is_empty(),
and use a myriad of insertion methods to increase coverage.
This commit is contained in:
Sean Morrison
2020-11-29 12:38:31 -05:00
parent b1c32b6751
commit c4be1ca649
5 changed files with 116 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ void test_vector_basic(void);
void test_vector_stress(void);
void test_string_buffer(void);
void test_table_sizes(void);
void test_table_counts(void);
void test_table_geometry(void);
void test_table_basic(void);
void test_table_copy(void);
@@ -36,6 +37,7 @@ struct test_case wb_test_suite [] = {
{"test_vector_stress", test_vector_stress},
{"test_string_buffer", test_string_buffer},
{"test_table_sizes", test_table_sizes},
{"test_table_counts", test_table_counts},
{"test_table_geometry", test_table_geometry},
{"test_table_copy", test_table_copy},
};