33 Commits

Author SHA1 Message Date
Sébastien Helleu
54841f6294 api: fix return of function string_match() when there are multiple masks in the string (issue #812)
Some tests are added as well to test the multiple masks in the string.
2016-10-02 08:58:19 +02:00
Sébastien Helleu
eb86def400 core: rename function string_iconv_fprintf to string_fprintf 2016-07-09 18:28:03 +02:00
Sébastien Helleu
22c0966387 tests: add tests on function string_split_command() 2016-05-14 09:14:08 +02:00
Wojciech Kwolek
a44bcaf080 core: fix the hardcoded separator in string_split_command 2016-05-08 12:14:17 +02:00
Sébastien Helleu
50817054f9 tests: add tests on string_split() with keep_eol set to 2 2016-01-23 10:35:07 +01:00
Sébastien Helleu
3330724574 core: update copyright dates 2016-01-01 11:09:53 +01:00
Sébastien Helleu
57b6e320d3 core: fix execution of empty command name
The strings "/" and "/ " are not considered as valid commands any more.
2015-12-31 19:07:14 +01:00
Sébastien Helleu
41cb1bf635 api: fix handle of invalid escape in function string_convert_escaped_chars()
And a new test is now checking that "\" returns "".
2015-08-24 11:05:31 +02:00
Sébastien Helleu
951d1f91a4 api: add function string_hex_dump() 2015-08-22 09:30:08 +02:00
Sébastien Helleu
2bd2d74a07 api: add function string_eval_path_home() 2015-06-24 07:54:42 +02:00
Sébastien Helleu
b2a68af077 core: add options weechat.look.word_chars_{highlight|input} (closes #55, task #9459) 2015-04-11 18:53:44 +02:00
Sébastien Helleu
8b056d7d24 tests: check that function string_strndup returns NULL if the given string is NULL 2015-03-22 11:14:12 +01:00
Sébastien Helleu
cace7471f0 tests: remove compiler warnings about unused parameters 2015-03-06 19:24:24 +01:00
Sébastien Helleu
3eb6cd3cd9 tests: remove unused variables 2015-03-03 07:43:23 +01:00
Sébastien Helleu
a020c28ea6 core: update copyright dates 2015-01-01 09:23:23 +01:00
Sébastien Helleu
7818e08964 tests: fix compilation of tests with clang (closes #275) 2014-12-10 21:15:40 +01:00
Sébastien Helleu
0d1abd3899 tests: add tests of functions string_shared_get and string_shared_free 2014-11-03 20:52:02 +01:00
Sébastien Helleu
45a0bfe1b3 tests: add test of function string_split_shell with an empty string 2014-10-12 18:09:57 +02:00
Sébastien Helleu
9249738582 tests: add extra check of argv pointer in test of string_split functions 2014-10-12 18:09:04 +02:00
Sébastien Helleu
8b23106145 tests: initialize argc to -1 instead of 1 before some tests 2014-10-12 18:07:53 +02:00
Sébastien Helleu
f39b37351c tests: fix build of tests when the build directory is outside source tree (closes #178) 2014-08-25 07:38:38 +02:00
Sébastien Helleu
99b7aa9d27 tests: fix memory leaks 2014-08-14 19:13:32 +02:00
Sébastien Helleu
00e79af39c tests: add tests of function string_split_shell 2014-08-14 19:12:00 +02:00
Sébastien Helleu
536318eafe tests: add tests of function string_replace_with_callback 2014-08-14 07:38:42 +02:00
Sébastien Helleu
a538a9c08e tests: add tests of function string_replace_regex 2014-08-09 09:08:06 +02:00
Sébastien Helleu
13fc108c6d tests: add TODO comments for missing tests 2014-08-06 07:53:04 +02:00
Sébastien Helleu
1aa8fd09ef tests: add tests of functions string_is_command_char and string_input_for_buffer 2014-08-02 16:55:49 +02:00
Sébastien Helleu
28cb1ae6f5 tests: add tests of base 16/64 decoding/encoding 2014-08-02 16:54:24 +02:00
Sébastien Helleu
d046315e8b api: fix function string_format_size on 32-bit systems 2014-08-02 11:44:15 +02:00
Sébastien Helleu
2987f9208e tests: add tests of function string_format_size 2014-08-01 07:34:35 +02:00
Sébastien Helleu
aaa29153b0 tests: add tests of functions string_iconv* 2014-07-31 07:48:36 +02:00
Sébastien Helleu
3d6b9ff5a7 tests: add tests of function string_is_word_char 2014-07-29 07:39:30 +02:00
Sébastien Helleu
db9a8e7bc4 tests: add unit tests using CppUTest
The tests can be run only via CMake:

  1. build with tests: cmake .. -DENABLE_TESTS=ON
  2. make
  3. ctest  (or ctest -V for verbose output)
2014-07-20 12:13:25 +02:00