19 Aug
2024
19 Aug
'24
9:38 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/user32/tests/edit.c:
} }
+struct state_tests +{ + int style; + int style_ex; + RECT input; +}; + +static void test_small_rect(void) +{ + struct state_tests tests[6];
You can declare the test data like this ``` static const struct { DWORD style; DWORD ex_style; RECT rect; } tests[] = { {ES_MULTILINE | WS_VISIBLE, 0, {0, 0, 0, 0}}, {ES_MULTILINE | WS_VISIBLE, 0, {0, 0, 10, 10}}, ... }; ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6304#note_79091