21 lines
470 B
C
21 lines
470 B
C
|
#include "tests.h"
|
||
|
#include "fort.h"
|
||
|
#include <string.h>
|
||
|
|
||
|
void test_table_basic(void **state)
|
||
|
{
|
||
|
(void)state;
|
||
|
FTABLE *table = ft_create_table();
|
||
|
|
||
|
int n = ft_hdr_printf(table, "%d , %c|| %s|%f", 3, 'c', "234", 3.14);
|
||
|
|
||
|
// assert_true( n == 4 );
|
||
|
|
||
|
// const char *table_str = ft_to_string(table);
|
||
|
// const char *table_str_etalon = "| 3 , c| | 234| 3.140000";
|
||
|
|
||
|
// assert_true( strcmp(table_str, table_str_etalon) == 0);
|
||
|
|
||
|
ft_destroy_table(table);
|
||
|
}
|