summaryrefslogtreecommitdiff
path: root/tests/unit/core
AgeCommit message (Collapse)Author
2020-01-27tests: add eval tests on "regex not matching" comparisonSébastien Helleu
2020-01-27tests: add eval tests with hdata list name and pointerSébastien Helleu
2020-01-27tests: add eval tests with buffer local variablesSébastien Helleu
2020-01-27tests: add eval tests on options with different typesSébastien Helleu
2020-01-27tests: add eval test with empty value for "date:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "modifier:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "repeat:"Sébastien Helleu
2020-01-27tests: add eval tests with invalid values for "cut:" and "cutscr:"Sébastien Helleu
2020-01-27tests: add eval test with invalid value for "hide:"Sébastien Helleu
2020-01-27tests: add eval test with invalid regex groupSébastien Helleu
2020-01-27tests: add evaluation tests with ternary operator and escape of prefix ("$")Sébastien Helleu
2020-01-27tests: add other calc tests with multiple operatorsSébastien Helleu
The order of operators are different from the initial test, so this increases the code coverage in wee-calc.c.
2020-01-04core: update copyright datesSébastien Helleu
2019-12-18core: fix evaluation of condition with nested "if" (closes #1434)Sébastien Helleu
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-10-06core: add support of modifiers in evaluation of expressions with ↵Sébastien Helleu
"modifier:name,data,string" (issue #60)
2019-09-24core: add power operator "**" in calc expressions (issue #997)Sébastien Helleu
2019-09-24core: fix wrong results with the unary minus in calc expressionsSébastien Helleu
2019-09-21core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}Sébastien Helleu
2019-09-21core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressionsSébastien Helleu
2019-09-20core: add calculation of expression in evaluation of expressions with ↵Sébastien Helleu
"calc:..." (issue #997)
2019-09-17Fixed segfault during excessive evaluation.Tobias Stoeckmann
It is possible to trigger a segmentation fault while processing an evaluation of repeating string. On a Linux 64 bit system, enter this (or adjust arguments for 32 bit accordingly): /eval -n ${repeat:1073741824,----} It will overflow an integer calculation because int instead of size_t is used. Proper check of int limitations fixes this issue. I haven't changed this specific piece of code to size_t because it would crash in other parts of the code tree instead. For now, int is a limitating factor when it comes to strings (and should be enough for sane use cases). Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-08-19core: use fixed-width integer for computing hashtable DJB2 key hash (closes ↵Sébastien Helleu
#1394)
2019-08-10api: add function list_user_data (issue #666)Andrew Potter
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-06-15core: check that string pointer is not NULL in function "string_shared_get"Sébastien Helleu
2019-04-01tests: add test with multiple wildcards in call to function string_matchSébastien Helleu
2019-04-01tests: add tests on function util_signal_searchSébastien Helleu
2019-04-01tests: add tests on util_timeval functionsSébastien Helleu
2019-04-01tests: add tests on function util_parse_delay with unit "ms" (milliseconds)Sébastien Helleu
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-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-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