diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-10 14:20:43 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-12 20:37:48 +0100 |
commit | 7ad3c1979c43ca823b16216616be7924df790747 (patch) | |
tree | b8dac1a7a0b9951c00dca6d2f2ca0c8820d9110d /tests/unit/plugins | |
parent | 99f0a2e002bd719d3ecac4b631b8cea68a8f0a6e (diff) | |
download | weechat-7ad3c1979c43ca823b16216616be7924df790747.zip |
tests/relay/api: add buffer id in test of buffer to json function (issue #2081)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/relay/api/test-relay-api-msg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unit/plugins/relay/api/test-relay-api-msg.cpp b/tests/unit/plugins/relay/api/test-relay-api-msg.cpp index 2fee7d763..6d5c45031 100644 --- a/tests/unit/plugins/relay/api/test-relay-api-msg.cpp +++ b/tests/unit/plugins/relay/api/test-relay-api-msg.cpp @@ -132,6 +132,7 @@ TEST(RelayApiMsg, BufferToJson) json = relay_api_msg_buffer_to_json (gui_buffers, 0, 0, RELAY_API_COLORS_ANSI); CHECK(json); CHECK(cJSON_IsObject (json)); + WEE_CHECK_OBJ_NUM(gui_buffers->id, json, "id"); WEE_CHECK_OBJ_STR("core.weechat", json, "name"); WEE_CHECK_OBJ_STR("weechat", json, "short_name"); WEE_CHECK_OBJ_NUM(1, json, "number"); |