summaryrefslogtreecommitdiff
path: root/tests/unit
AgeCommit message (Collapse)Author
2019-03-29core: move parsing of /wait delay in a separate function, with unit testsSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-03-09core: add value -1 for keep_eol in function string_strip (issue #1322)Sébastien Helleu
The value -1 means it's a standard split, but empty items are kept, and separators are not removed at beginning/end of string.
2019-02-27api: add function string_match_listSébastien Helleu
2019-02-19spell: rename "aspell" plugin to "spell" (issue #1299)Sébastien Helleu
The following things have been renamed: - file aspell.conf -> spell.conf - options aspell.* -> spell.* - bar item aspell_dict -> spell_dict - bar item and local variable aspell_suggest -> spell_suggest - info aspell_dict -> spell_dict
2019-01-26tests: fix evaluation tests on FreeBSDSébastien Helleu
The following special sequences are not supported in regular expressions on FreeBSD: - "\w": replaced with "[a-zA-Z0-9_]" - "\S": replaced with "[^ ]" (it should be "[^ \t\n\r\f\v]", but in practice only spaces could be a problem when we use this sequence).
2019-01-26tests: fix UTF-8 tests on FreeBSDSébastien Helleu
Tests for size on screen are made on U+2EE9 (CJK Radical Simplified Yellow) instead of U+24B62 (CJK Unified Ideograph-24B62) which returns a length of 1 on FreeBSD and 2 on Linux.
2019-01-20tests: add missing include of stdio.hSébastien Helleu
2019-01-20tests: add tests on IRC color functionsSébastien Helleu
Functions tested: - irc_color_decode - irc_color_encode - irc_color_decode_ansi
2019-01-13tests: add tests on function irc_protocol_parse_timeSébastien Helleu
2019-01-11tests: add tests on function irc_config_check_autojoinSébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-11-04api: add functions string_base_{encode,decode}, remove functions ↵Sébastien Helleu
string_{encode,decode}_base64
2018-11-02api: return integer in function string_encode_base16Sébastien Helleu
2018-11-02api: return integer in function string_encode_base64Sébastien Helleu
2018-11-02tests: add tests on functions secure_encrypt_data and secure_decrypt_dataSébastien Helleu
2018-11-02core: add support of TOTP generation/validation (Time-based One-Time Password)Sébastien Helleu
2018-10-09core: add repeat of string in evaluation of expressions with ↵Sébastien Helleu
"repeat:count,string" (closes #958)
2018-10-08core: fix evaluation of nested ternary operators (closes #1263)Sébastien Helleu
2018-09-09core: add missing slash at the end of weechat.org URLsSébastien Helleu
2018-08-18core: fix evaluation of condition when the left operand is an empty stringSébastien Helleu
2018-08-16core: fix string evaluation with regex replacement when the string is emptySébastien Helleu
2018-08-16tests: add tests on modifier hookSébastien Helleu
2018-08-15tests: properly initialize variable argc before tests on function string_splitSébastien Helleu
2018-08-15tests: add test on function string_split with a string having only delimitersSébastien Helleu
2018-08-12core: fix check of tags in linesSébastien Helleu
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
2018-06-02core: add reverse of string in evaluation of expressions with "rev:" (closes ↵Sébastien Helleu
#1200)
2018-06-02tests: add missing tests on function string_cutSébastien Helleu
2018-06-02core: count number of chars instead of bytes for suffix in function string_cutSébastien Helleu
2018-06-02tests: fix test of function utf8_strlen_screen on Han char (U+24B62)Sébastien Helleu
2018-05-20Merge remote-tracking branch 'origin/pr/623' into irc-3.2-capSébastien Helleu
2018-04-17tests: add tests on eval_expression() with different prefix/suffixSébastien Helleu
2018-04-12tests: add tests on infolistsSébastien Helleu
2018-01-07tests: fix tests on function string_regex_flagsSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-10-17core: allow floating point and hexadecimal numbers in comparison of ↵Sébastien Helleu
evaluated values
2017-10-07javascript: fix detection of libv8 with autotools on Ubuntu TrustySébastien Helleu
2017-09-03tests: add PHP plugin in testsSébastien Helleu
2017-08-20tests: improve tests on dynamic stringsSébastien Helleu
2017-06-25tests: check that fset plugin is loadedSébastien Helleu
2017-06-17core: add hashtable_add_from_infolist to APISimmo Saan
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)