[F] Fixed msvc printf test error
This commit is contained in:
parent
efa4921b3e
commit
4f15a2e51d
@ -665,17 +665,17 @@ void test_table_write(void)
|
||||
assert_true(set_test_options_for_table(table) == FT_SUCCESS);
|
||||
|
||||
ft_set_cell_option(table, 0, FT_ANY_COLUMN, FT_COPT_ROW_TYPE, FT_ROW_HEADER);
|
||||
int n = ft_wprintf_ln(table, L"%d|%c|%s|%f", 3, 'c', "234", 3.14);
|
||||
int n = ft_wprintf_ln(table, L"%d|%c|%ls|%f", 3, 'c', L"234", 3.14);
|
||||
assert_true(n == 4);
|
||||
n = ft_wprintf(table, L"%c|%s|%f|%d", 'c', "235", 3.15, 5);
|
||||
n = ft_wprintf(table, L"%c|%ls|%f|%d", 'c', L"235", 3.15, 5);
|
||||
assert_true(n == 4);
|
||||
ft_ln(table);
|
||||
n = ft_wprintf_ln(table, L"%s|%f|%d|%c", "234", 3.14, 3, 'c');
|
||||
n = ft_wprintf_ln(table, L"%ls|%f|%d|%c", L"234", 3.14, 3, 'c');
|
||||
assert_true(n == 4);
|
||||
|
||||
/* Replace old values */
|
||||
ft_set_cur_cell(table, 1, 1);
|
||||
n = ft_wprintf_ln(table, L"%s|%f|%d", "234", 3.14, 3);
|
||||
n = ft_wprintf_ln(table, L"%ls|%f|%d", L"234", 3.14, 3);
|
||||
assert_true(n == 3);
|
||||
|
||||
const wchar_t *table_str = ft_to_wstring(table);
|
||||
|
Loading…
Reference in New Issue
Block a user