summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-06-28 20:27:08 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-07-04 13:27:32 +0200
commitdccf605e6647f8ae1a075558384a521843760ed1 (patch)
tree8871ec3b6e57b313712c437dd03dbf5a85ff4952 /tests/unit
parentb585ec09f89f7363652ed12d80148f79a48b713d (diff)
downloadweechat-dccf605e6647f8ae1a075558384a521843760ed1.zip
typing: add typing plugin
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/core/test-core-string.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp
index 9960424cc..d3e22cdeb 100644
--- a/tests/unit/core/test-core-string.cpp
+++ b/tests/unit/core/test-core-string.cpp
@@ -2093,13 +2093,12 @@ TEST(CoreString, InputForBuffer)
char *str;
POINTERS_EQUAL(NULL, string_input_for_buffer (NULL));
+ POINTERS_EQUAL(NULL, string_input_for_buffer ("/"));
POINTERS_EQUAL(NULL, string_input_for_buffer ("/abc"));
+
str = strdup ("");
STRCMP_EQUAL(str, string_input_for_buffer (str));
free (str);
- str = strdup ("/");
- STRCMP_EQUAL(str, string_input_for_buffer (str));
- free (str);
str = strdup ("/ ");
STRCMP_EQUAL(str, string_input_for_buffer (str));
free (str);