summaryrefslogtreecommitdiff
path: root/tests/unit/core
AgeCommit message (Collapse)Author
2022-12-10core: do not display non printable chars, fix function utf8_char_size_screenSébastien Helleu
Now the function utf8_char_size_screen can return -1 when the char is not printable. It has a specific behavior for some chars: - U+0009: value of option weechat.look.tab_width - U+0001 to U+001F (except U+0009): 1 - U+00AD (soft hyphen): -1 - U+200B (zero width space): -1
2022-12-10api: add function utf8_strncpySébastien Helleu
2022-12-10core: optimize and fix function utf8_strlen_screen with non printable charsSébastien Helleu
When there non printable chars, the return of the function was 1. For example utf8_strlen_screen("abc\x01") now returns 4 instead of 1. In addition the function has been optimized to not use the `mbstowcs` function which is slow; result is up to 15% faster.
2022-12-10core: add result of `utf8_char_size_screen` in /debug unicodeSébastien Helleu
2022-12-03core: display hex codepoint before integer codepoint in /debug unicodeSébastien Helleu
2022-11-27tests: define constants with UTF-8 strings, add tests on functions returning ↵Sébastien Helleu
size on screen
2022-11-21core: add option `unicode` in command `/debug`Sébastien Helleu
2022-11-05tests: add another test on function string_translate_charsSébastien Helleu
2022-11-05core: add range of chars in evaluation of expressions with `chars:xxx`Sébastien Helleu
2022-11-05api: add function string_translate_charsSébastien Helleu
2022-10-08tests: Use LONGS_EQUAL for version number testsTrygve Aaberge
util_version_number returns an int, but BYTES_EQUAL only compares the last byte of the int, so it wouldn't test the rest of the int. I see other tests for functions returning an int use LONGS_EQUAL, so that seems correct to use.
2022-09-27api: restrict number to integer in function string_parse_sizeSébastien Helleu
2022-09-27api: add function string_parse_sizeSébastien Helleu
2022-09-18core: add key alt+backspace, change behavior of key ctrl+w (closes #559)Sébastien Helleu
The key ctrl+w now deletes one word until whitespace. The new key alt+backspace deletes one word (same behavior as ctrl+w in previous releases).
2022-08-16api: add function crypto_hash_fileSébastien Helleu
2022-08-13tests: add tests on dynamic string functions with NULL stringSébastien Helleu
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-04-18core: add case conversion in evaluation of expressions (closes #1778)Sébastien Helleu
2022-03-10tests: move include of tests/tests.h outside of extern "C"Sébastien Helleu
2022-02-19tests: add tests on function string_strndupSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2022-01-14tests: split tests on functions string_tolower and string_toupperSébastien Helleu
2022-01-14core: rename argument "length" to "bytes" in function string_strndupSébastien Helleu
2021-11-21tests: add missing include of stdio.hSébastien Helleu
2021-11-09tests: add extra tests on functions string_strcmp_ignore_chars and ↵Sébastien Helleu
string_convert_escaped_chars
2021-11-07tests: fix allocation of test_ptr_1_hashtable_dyn in hdata testsSébastien Helleu
2021-11-07tests: add tests on UTF-8 string functionsSébastien Helleu
2021-11-06api: add parameters pointers, extra_vars and options in function hdata_searchSébastien Helleu
2021-11-05tests: add missing include of string.hSébastien Helleu
2021-11-05core: add unit tests on hdataSébastien Helleu
2021-10-01core: add command /toggleSébastien Helleu
2021-09-20core: add creation of user variables in evaluated expressions with ↵Sébastien Helleu
${define:name,value}
2021-09-06api: add split of string and shell arguments in evaluation of expressionsSébastien Helleu
Split of string: ${split:number,separators,flags,xxx} Split of shell arguments: ${split_shell:number,xxx}
2021-08-29api: add "${re:repl_index}" to get the index of replacement in function ↵Sébastien Helleu
string_eval_expression
2021-08-06core: fix decoding of attributes in basic ANSI colors (closes #1678)Sébastien Helleu
2021-08-03api: add random integer number in evaluation of expressions with ↵Sébastien Helleu
"random:min,max"
2021-07-04typing: add typing pluginSébastien Helleu
2021-07-03api: add function file_copy (issue #1667)Sébastien Helleu
2021-06-26api: remember insertion order in hashtablesSébastien Helleu
2021-06-22core: fix function string_match with joker in the string if multiple words ↵Sébastien Helleu
matched in input string Before fix: string_match("script.color.text_description", "*script*color*", 0) => 0 After fix: string_match("script.color.text_description", "*script*color*", 0) => 1
2021-06-16tests: fix tests on signal_search_numberSébastien Helleu
2021-06-01api: add function crypto_hmac (issue #1628)Sébastien Helleu
2021-06-01tests: add test of base64 encode/decode with NUL char in stringSébastien Helleu
2021-05-16tests: remove dependency on French locale in eval testsSébastien Helleu
2021-05-16tests: add missing include of locale.h in eval testsSébastien Helleu
2021-05-16tests: remove commented includesSébastien Helleu
2021-05-16core: set server name when connecting to server with TLS (SNI extension) ↵Sébastien Helleu
only if it's not an IPV4/IPv6 (closes #1635)
2021-05-16tests: add tests on translation in evaluated expressionsSébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets