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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user