]> git.sur5r.net Git - i3/i3/blobdiff - tests/test_table.c
Merge branch 'fix-mode-switch'
[i3/i3] / tests / test_table.c
index 14e36de8cabc821693efc4b8bca93ffe8e73d18a..554be3e74a7ea9c987e53c9ef32335e9b114000e 100644 (file)
@@ -2,29 +2,28 @@
 #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 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("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();
+    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();
 }