summaryrefslogtreecommitdiff
path: root/tests/unit/gui
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/gui')
-rw-r--r--tests/unit/gui/test-gui-buffer.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/gui/test-gui-buffer.cpp b/tests/unit/gui/test-gui-buffer.cpp
index 66a219c66..b61dc1352 100644
--- a/tests/unit/gui/test-gui-buffer.cpp
+++ b/tests/unit/gui/test-gui-buffer.cpp
@@ -385,6 +385,23 @@ TEST(GuiBuffer, Insert)
/*
* Tests functions:
+ * gui_buffer_generate_id
+ */
+
+TEST(GuiBuffer, GenerateId)
+{
+ long long id;
+
+ id = gui_buffer_generate_id ();
+ CHECK(id > gui_buffer_last_id_assigned);
+ id = gui_buffer_generate_id ();
+ CHECK(id > gui_buffer_last_id_assigned);
+ id = gui_buffer_generate_id ();
+ CHECK(id > gui_buffer_last_id_assigned);
+}
+
+/*
+ * Tests functions:
* gui_buffer_input_buffer_init
*/
@@ -492,6 +509,7 @@ test_buffer_close_cb (const void *pointer, void *data,
/*
* Tests functions:
+ * gui_buffer_new_props_with_id
* gui_buffer_new_props
*/