summaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2017-04-29core: add wildcard matching operators to eval (closes #608)Simmo Saan
2017-04-26tests: fix compilation warning on FreeBSDSébastien Helleu
2017-04-24core: add a way to count the suffix length in max chars displayed in cut of ↵Sébastien Helleu
string ("cut:" and "cutscr:") (closes #963) The format to use is one of: - ${cut:+max,suffix,string} - ${cutscr:+max,suffix,string} With the "+" before max, WeeChat ensures there are at most "max" chars in output, including the length of suffix string.
2017-04-22core: ensure length is not negative in function string_strndupSébastien Helleu
2017-04-01tests: fix tests on dynamic stringsSébastien Helleu
2017-03-30core: add ${re:#} to get the index of last group captured in evaluation of ↵Sébastien Helleu
expressions
2017-03-30core: make "callback_cmp" optional in call to function arraylist_new()Sébastien Helleu
If no callback is given, a default callback is used, which just compares pointers.
2017-03-28tests: add tests on combining characters in cut/cutscr (evaluation of ↵Sébastien Helleu
expression)
2017-03-28core: fix cut of chars in "cutscr" of evaluated stringsSébastien Helleu
This fixes two problems: - stop before max char displayed with wide chars - preserve combining chars in the output Before the fix (wrong): >> ${cutscr:3,+,こんにちは世界} == [こん+] >> ${cutscr:1,+,a${\u0308}} == [a+] After the fix (OK): >> ${cutscr:3,+,こんにちは世界} == [こ+] >> ${cutscr:1,+,a${\u0308}} == [ä]
2017-03-27core: add cut of string with max chars displayed in evaluation of expressionsSébastien Helleu
The syntax is: ${cutscr:max,suffix,string}. The string is cut after max chars displayed on screen. If the string is cut, the optional suffix is added after.
2017-03-25core: add cut of string in evaluation of expressionsSébastien Helleu
The syntax is: ${cut:max,suffix,string}. The string is cut after max chars. If the string is cut, the optional suffix is added after.
2017-03-25buflist: new plugin "buflist" (bar with list of buffers)Sébastien Helleu
2017-03-25core: add ternary operator (condition) in evaluation of expressionsSébastien Helleu
2017-03-25api: add dynamic string functions (string_dyn_*)Sébastien Helleu
New functions: - string_dyn_alloc - string_dyn_copy - string_dyn_concat - string_dyn_free
2017-01-01core: update copyright datesSébastien Helleu
2016-10-02api: fix return of function string_match() when there are multiple masks in ↵Sébastien Helleu
the string (issue #812) Some tests are added as well to test the multiple masks in the string.
2016-08-18tests: add test on the "extra" option on function eval_expression()Sébastien Helleu
2016-07-09core: rename function string_iconv_fprintf to string_fprintfSébastien Helleu
2016-05-14tests: add tests on function string_split_command()Sébastien Helleu
2016-05-08core: fix the hardcoded separator in string_split_commandWojciech Kwolek
2016-01-23tests: add tests on string_split() with keep_eol set to 2Sébastien Helleu
2016-01-01core: update copyright datesSébastien Helleu
2015-12-31core: fix execution of empty command nameSébastien Helleu
The strings "/" and "/ " are not considered as valid commands any more.
2015-12-25tests: temporary disable check of javascript pluginSébastien Helleu
The compilation with autotools fails to detect v8 lib (used by javascript plugin) on Ubuntu Trusty, so the tests are failing because javascript plugins is not loaded. This check will be enabled again when autotools compilation will be fixed.
2015-12-24tests: check if all plugins are loadedSébastien Helleu
2015-08-24api: fix handle of invalid escape in function string_convert_escaped_chars()Sébastien Helleu
And a new test is now checking that "\" returns "".
2015-08-22api: add function string_hex_dump()Sébastien Helleu
2015-08-18api: add argument "length" in function utf8_is_valid()Sébastien Helleu
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-06-30api: add support of evaluated sub-strings and current date/time in function ↵Sébastien Helleu
string_eval_expression() and command /eval
2015-06-24api: add function string_eval_path_home()Sébastien Helleu
2015-04-26core: add support of full color option name in command /eval and API ↵Sébastien Helleu
function string_eval_expression()
2015-04-11core: add options weechat.look.word_chars_{highlight|input} (closes #55, ↵Sébastien Helleu
task #9459)
2015-03-22tests: check that function string_strndup returns NULL if the given string ↵Sébastien Helleu
is NULL
2015-03-06tests: remove compiler warnings about unused parametersSébastien Helleu
2015-03-03tests: remove unused variablesSébastien Helleu
2015-03-02tests: remove unused variableSébastien Helleu
2015-02-13tests: add tests on weelist functionsSébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-12-13core: use https for WeeChat URLsSébastien Helleu
2014-12-10tests: fix compilation of tests with clang (closes #275)Sébastien Helleu
2014-11-23tests: add tests of regex replace with empty regex or regex_replaceSébastien Helleu
2014-11-18tests: add hashtable tests with multiple items giving same hashed keySébastien Helleu
2014-11-03tests: add tests of functions string_shared_get and string_shared_freeSébastien Helleu
2014-10-22api: add regex replace feature in function string_eval_expressionSébastien Helleu
2014-10-16tests: fix memory leak in hashtable testsSébastien Helleu
2014-10-16core: add hide of chars in string in evaluation of expressionsSébastien Helleu
The syntax is: ${hide:char,string}. All chars in string are replaced with char (which can be one or more chars).
2014-10-12tests: add test of function string_split_shell with an empty stringSébastien Helleu
2014-10-12tests: add extra check of argv pointer in test of string_split functionsSébastien Helleu
2014-10-12tests: initialize argc to -1 instead of 1 before some testsSébastien Helleu