summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-07-29 07:39:30 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-07-29 07:39:30 +0200
commit3d6b9ff5a7bfda96b20bbf0433700f8d49932011 (patch)
treeb4d9fd3c18c6877935f4b8fa262320905f2d6215
parent3ffbb85cb973531ed6c39849170250311f53906b (diff)
downloadweechat-3d6b9ff5a7bfda96b20bbf0433700f8d49932011.zip
tests: add tests of function string_is_word_char
-rw-r--r--src/core/wee-string.h1
-rw-r--r--tests/unit/core/test-string.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/wee-string.h b/src/core/wee-string.h
index 044d3d0a5..5daf9052d 100644
--- a/src/core/wee-string.h
+++ b/src/core/wee-string.h
@@ -48,6 +48,7 @@ extern char *string_remove_quotes (const char *string, const char *quotes);
extern char *string_strip (const char *string, int left, int right,
const char *chars);
extern char *string_convert_escaped_chars (const char *string);
+extern int string_is_word_char (const char *string);
extern char *string_mask_to_regex (const char *mask);
extern const char *string_regex_flags (const char *regex, int default_flags,
int *flags);
diff --git a/tests/unit/core/test-string.cpp b/tests/unit/core/test-string.cpp
index f430d870d..729286e41 100644
--- a/tests/unit/core/test-string.cpp
+++ b/tests/unit/core/test-string.cpp
@@ -363,7 +363,6 @@ TEST(String, ConvertEscapedChars)
* string_is_word_char
*/
-/*
TEST(String, IsWordChar)
{
LONGS_EQUAL(0, string_is_word_char (NULL));
@@ -379,7 +378,6 @@ TEST(String, IsWordChar)
LONGS_EQUAL(1, string_is_word_char ("_abc"));
LONGS_EQUAL(1, string_is_word_char ("|abc"));
}
-*/
/*
* Tests functions: