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

core: fix check of tags in lines

All changes:
- fix check of tags in lines: check lines without tags, fix check of tags with
  negation ("!tag")
- add string functions string_split_tags and string_free_split_tags
- add tests on function gui_line_match_tags
This commit is contained in:
Sébastien Helleu
2018-08-07 21:50:04 +02:00
parent d699ae89aa
commit 12a6f74ec0
23 changed files with 382 additions and 275 deletions
+5 -5
View File
@@ -41,7 +41,7 @@ extern "C"
STRCMP_EQUAL(__result, value); \
free (value);
TEST_GROUP(Eval)
TEST_GROUP(CoreEval)
{
};
@@ -50,7 +50,7 @@ TEST_GROUP(Eval)
* eval_is_true
*/
TEST(Eval, Boolean)
TEST(CoreEval, Boolean)
{
/* false */
LONGS_EQUAL(0, eval_is_true (NULL));
@@ -69,7 +69,7 @@ TEST(Eval, Boolean)
* eval_expression (condition)
*/
TEST(Eval, EvalCondition)
TEST(CoreEval, EvalCondition)
{
struct t_hashtable *pointers, *extra_vars, *options;
char *value;
@@ -218,7 +218,7 @@ TEST(Eval, EvalCondition)
* eval_expression (expression)
*/
TEST(Eval, EvalExpression)
TEST(CoreEval, EvalExpression)
{
struct t_hashtable *pointers, *extra_vars, *options;
struct t_config_option *ptr_option;
@@ -427,7 +427,7 @@ TEST(Eval, EvalExpression)
* eval_expression (replace with regex)
*/
TEST(Eval, EvalReplaceRegex)
TEST(CoreEval, EvalReplaceRegex)
{
struct t_hashtable *pointers, *extra_vars, *options;
char *value;