[C] Documentation changes
This commit is contained in:
@@ -25,7 +25,7 @@ void test_free(void *ptr)
|
||||
|
||||
static int create_simple_table_and_show(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
int result = 0;
|
||||
|
||||
table = ft_create_table();
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
void test_table_basic(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
WHEN("All columns are equal and not empty") {
|
||||
table = ft_create_table();
|
||||
@@ -261,7 +261,7 @@ void test_table_basic(void)
|
||||
#ifdef FT_HAVE_WCHAR
|
||||
void test_wcs_table_boundaries(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
WHEN("All columns are not equal and not empty (wide strings)") {
|
||||
table = ft_create_table();
|
||||
@@ -298,7 +298,7 @@ void test_wcs_table_boundaries(void)
|
||||
|
||||
void test_table_write(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
SCENARIO("Test write functions") {
|
||||
table = ft_create_table();
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
void test_table_border_style(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
set_test_options_as_default();
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
void test_table_sizes(void)
|
||||
{
|
||||
FTABLE *table = ft_create_table();
|
||||
ft_table_t *table = ft_create_table();
|
||||
assert_true(table != NULL);
|
||||
assert_true(set_test_options_for_table(table) == FT_SUCCESS);
|
||||
|
||||
@@ -53,7 +53,7 @@ void test_table_sizes(void)
|
||||
|
||||
void test_table_geometry(void)
|
||||
{
|
||||
FTABLE *table = ft_create_table();
|
||||
ft_table_t *table = ft_create_table();
|
||||
assert_true(table != NULL);
|
||||
assert_true(set_test_options_for_table(table) == FT_SUCCESS);
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
void test_table_tbl_options(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
WHEN("Test setting entire table options") {
|
||||
set_test_options_as_default();
|
||||
@@ -134,7 +134,7 @@ void test_table_tbl_options(void)
|
||||
|
||||
void test_table_cell_options(void)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
|
||||
WHEN("All paddings = 1") {
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#include "tests.h"
|
||||
#include "fort.h"
|
||||
|
||||
int set_test_options_for_table(FTABLE *table)
|
||||
int set_test_options_for_table(ft_table_t *table)
|
||||
{
|
||||
assert(table);
|
||||
int status = FT_SUCCESS;
|
||||
@@ -71,9 +71,9 @@ int set_test_options_as_default(void)
|
||||
|
||||
|
||||
|
||||
FTABLE *create_test_int_table(int set_test_opts)
|
||||
ft_table_t *create_test_int_table(int set_test_opts)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
table = ft_create_table();
|
||||
assert_true(table != NULL);
|
||||
@@ -102,9 +102,9 @@ FTABLE *create_test_int_table(int set_test_opts)
|
||||
}
|
||||
|
||||
#ifdef FT_HAVE_WCHAR
|
||||
FTABLE *create_test_int_wtable(int set_test_opts)
|
||||
ft_table_t *create_test_int_wtable(int set_test_opts)
|
||||
{
|
||||
FTABLE *table = NULL;
|
||||
ft_table_t *table = NULL;
|
||||
|
||||
table = ft_create_table();
|
||||
assert_true(table != NULL);
|
||||
|
@@ -62,10 +62,10 @@ struct test_case
|
||||
exit(EXIT_FAILURE); \
|
||||
}
|
||||
|
||||
int set_test_options_for_table(FTABLE *table);
|
||||
int set_test_options_for_table(ft_table_t *table);
|
||||
int set_test_options_as_default(void);
|
||||
FTABLE *create_test_int_table(int set_test_opts);
|
||||
FTABLE *create_test_int_wtable(int set_test_opts);
|
||||
ft_table_t *create_test_int_table(int set_test_opts);
|
||||
ft_table_t *create_test_int_wtable(int set_test_opts);
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user