diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-14 12:13:46 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-28 15:13:45 +0100 |
commit | db177de20431f2c2dc98d267d586196f67a85915 (patch) | |
tree | a01bd610e20eae36da2b81675ae6d4f87aac787c /tests/unit/core | |
parent | 72f4596fb22538ab6691157399c32f151fd98629 (diff) | |
download | weechat-db177de20431f2c2dc98d267d586196f67a85915.zip |
core: make configuration files, sections and options case sensitive (issue #1872)
Diffstat (limited to 'tests/unit/core')
-rw-r--r-- | tests/unit/core/test-core-config-file.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/unit/core/test-core-config-file.cpp b/tests/unit/core/test-core-config-file.cpp index dc6ca84b9..96cd67c01 100644 --- a/tests/unit/core/test-core-config-file.cpp +++ b/tests/unit/core/test-core-config-file.cpp @@ -82,8 +82,8 @@ TEST(CoreConfigFile, FindPos) { POINTERS_EQUAL(NULL, config_file_find_pos (NULL)); POINTERS_EQUAL(config_files, config_file_find_pos ("")); - POINTERS_EQUAL(weechat_config_file->next_config, config_file_find_pos ("weechat")); - POINTERS_EQUAL(weechat_config_file->next_config, config_file_find_pos ("WEECHAT")); + POINTERS_EQUAL(weechat_config_file->next_config, config_file_find_pos ("weechat2")); + POINTERS_EQUAL(config_files, config_file_find_pos ("WEECHAT2")); } /* @@ -444,18 +444,14 @@ TEST(CoreConfigFile, StringBooleanIsValid) LONGS_EQUAL(0, config_file_string_boolean_is_valid ("zzz")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("on")); - LONGS_EQUAL(1, config_file_string_boolean_is_valid ("ON")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("yes")); - LONGS_EQUAL(1, config_file_string_boolean_is_valid ("Yes")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("y")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("true")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("t")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("1")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("off")); - LONGS_EQUAL(1, config_file_string_boolean_is_valid ("OFF")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("no")); - LONGS_EQUAL(1, config_file_string_boolean_is_valid ("No")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("n")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("false")); LONGS_EQUAL(1, config_file_string_boolean_is_valid ("f")); @@ -474,18 +470,14 @@ TEST(CoreConfigFile, StringToBoolean) LONGS_EQUAL(0, config_file_string_to_boolean ("zzz")); LONGS_EQUAL(1, config_file_string_to_boolean ("on")); - LONGS_EQUAL(1, config_file_string_to_boolean ("ON")); LONGS_EQUAL(1, config_file_string_to_boolean ("yes")); - LONGS_EQUAL(1, config_file_string_to_boolean ("Yes")); LONGS_EQUAL(1, config_file_string_to_boolean ("y")); LONGS_EQUAL(1, config_file_string_to_boolean ("true")); LONGS_EQUAL(1, config_file_string_to_boolean ("t")); LONGS_EQUAL(1, config_file_string_to_boolean ("1")); LONGS_EQUAL(0, config_file_string_to_boolean ("off")); - LONGS_EQUAL(0, config_file_string_to_boolean ("OFF")); LONGS_EQUAL(0, config_file_string_to_boolean ("no")); - LONGS_EQUAL(0, config_file_string_to_boolean ("No")); LONGS_EQUAL(0, config_file_string_to_boolean ("n")); LONGS_EQUAL(0, config_file_string_to_boolean ("false")); LONGS_EQUAL(0, config_file_string_to_boolean ("f")); |