From c83b08fae83355299539a567cb96fda659fac424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 14 Jun 2024 17:37:11 +0200 Subject: [PATCH] tests: add test on function hdata_count with empty list "gui_layouts" --- tests/unit/core/test-core-eval.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/core/test-core-eval.cpp b/tests/unit/core/test-core-eval.cpp index 2a2ad1f8d..72678fca7 100644 --- a/tests/unit/core/test-core-eval.cpp +++ b/tests/unit/core/test-core-eval.cpp @@ -1018,6 +1018,7 @@ TEST(CoreEval, EvalExpression) "${hdata_count:buffer[%p]}", test_buffer); WEE_CHECK_EVAL("1", str_expr); gui_buffer_close (test_buffer); + WEE_CHECK_EVAL("0", "${hdata_count:layout[gui_layouts]}"); /* test hdata */ hashtable_set (pointers, "my_null_pointer", (const void *)0x0);