printf("%s\n", formatted);
assert_se(streq(formatted,
- "NAME TYPE RO USAGE CREATED MODIFIED \n"
+ "NAME TYPE RO USAGE CREATED MODIFIED\n"
"foooo raw no 673.6M Wed 2018-07-11 00:10:33 J… Wed 2018-07-11 00:16:00 JST\n"
));
}
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"));
+ "lines \n"));
formatted = mfree(formatted);
table_set_cell_height_max(table, (size_t) -1);
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"));
+ "lines \n"));
formatted = mfree(formatted);
assert_se(table_add_many(table,
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"
+ "lines \n"
"short a\n"
" pair\n"
"short2 a\n"
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"
+ "lines \n"
"short a\n"
" pair\n"
"short2 a\n"
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"));
+ "lines \n"));
formatted = mfree(formatted);
table_set_cell_height_max(table, (size_t) -1);
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"));
+ "lines \n"));
formatted = mfree(formatted);
assert_se(table_add_many(table,
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"
+ "lines \n"
"short a\n"
" pair\n"
"short2 a\n"
"FOO BAR\n"
"three two\n"
"different lines\n"
- "lines \n"
+ "lines \n"
"short a\n"
" pair\n"
"short2 a\n"
assert_se(streq(formatted,
"FOO BAR\n"
"three different two lines\n"
- "lines \n"
+ "lines \n"
"short a pair\n"
"short2 a eight line ćęłł\n"
" ___5___ ___6___…\n"));
assert_se(streq(formatted,
"FOO BAR\n"
"three different two lines\n"
- "lines \n"
+ "lines \n"
"short a pair\n"
"short2 a eight line ćęłł\n"
" ___5___ ___6___\n"
assert_se(streq(formatted,
"FOO BAR\n"
"three different two lines\n"
- "lines \n"
+ "lines \n"
"short a pair\n"
"short2 a eight line ćęłł\n"
" ___5___ ___6___\n"
if (isatty(STDOUT_FILENO))
assert_se(streq(formatted,
" no a long f… no a long f… a long fi…\n"
- " no fäää no fäää fäää \n"
- " yes fäää yes fäää fäää \n"
- " yes xxx yes xxx xxx \n"
- "5min 5min \n"));
+ " no fäää no fäää fäää\n"
+ " yes fäää yes fäää fäää\n"
+ " yes xxx yes xxx xxx\n"
+ "5min 5min \n"));
else
assert_se(streq(formatted,
" no a long field no a long field a long field\n"
- " no fäää no fäää fäää \n"
- " yes fäää yes fäää fäää \n"
- " yes xxx yes xxx xxx \n"
- "5min 5min \n"));
+ " no fäää no fäää fäää\n"
+ " yes fäää yes fäää fäää\n"
+ " yes xxx yes xxx xxx\n"
+ "5min 5min \n"));
test_issue_9549();
test_multiline();