1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 12:56:37 +02:00

tests: add extra tests on function gui_input_set_pos

This commit is contained in:
Sébastien Helleu
2022-12-17 15:38:34 +01:00
parent 3ef8241444
commit d2f447dafc
+5 -1
View File
@@ -53,8 +53,12 @@ TEST(GuiInput, ReplaceInputSetPos)
gui_input_replace_input (gui_buffers, NULL);
gui_input_replace_input (gui_buffers, "noël");
gui_input_set_pos (gui_buffers, 4);
STRCMP_EQUAL("noël", gui_buffers->input_buffer);
gui_input_set_pos (gui_buffers, 4);
LONGS_EQUAL(5, gui_buffers->input_buffer_size);
LONGS_EQUAL(4, gui_buffers->input_buffer_length);
LONGS_EQUAL(4, gui_buffers->input_buffer_pos);
gui_input_set_pos (gui_buffers, 5);
LONGS_EQUAL(5, gui_buffers->input_buffer_size);
LONGS_EQUAL(4, gui_buffers->input_buffer_length);
LONGS_EQUAL(4, gui_buffers->input_buffer_pos);