Separate font stuff to font.c, beautify Makefile
This commit is contained in:
30
tests/test_table.c
Normal file
30
tests/test_table.c
Normal file
@ -0,0 +1,30 @@
|
||||
#include <stdio.h>
|
||||
#include "table.h"
|
||||
|
||||
void print_table() {
|
||||
int r, c;
|
||||
printf("printing table...\n");
|
||||
for (c = 0; c < table_dims.x; c++)
|
||||
for (r = 0; r < table_dims.y; r++)
|
||||
printf("table[%d][%d] = %p\n", c, r, table[c][r]);
|
||||
printf("done\n");
|
||||
}
|
||||
|
||||
int main() {
|
||||
printf("table.c tests\n");
|
||||
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
||||
init_table();
|
||||
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
||||
print_table();
|
||||
|
||||
printf("expand_table_cols()\n");
|
||||
expand_table_cols();
|
||||
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
||||
print_table();
|
||||
|
||||
printf("expand_table_rows()\n");
|
||||
expand_table_rows();
|
||||
printf("table_dimensions = %d, %d\n", table_dims.x, table_dims.y);
|
||||
print_table();
|
||||
|
||||
}
|
Reference in New Issue
Block a user