diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-30 20:35:16 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-03-30 20:35:16 +0200 |
commit | 467f482ea6653127d49ea7b6c487f9d51929d232 (patch) | |
tree | b32bdd6776078c84adf5ac5bf193d649e26ba7c0 /tests/unit/core/test-arraylist.cpp | |
parent | 0436fff31b5ef7814391dd1a666cccfaa0f2ff67 (diff) | |
download | weechat-467f482ea6653127d49ea7b6c487f9d51929d232.zip |
core: make "callback_cmp" optional in call to function arraylist_new()
If no callback is given, a default callback is used, which just compares
pointers.
Diffstat (limited to 'tests/unit/core/test-arraylist.cpp')
-rw-r--r-- | tests/unit/core/test-arraylist.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/unit/core/test-arraylist.cpp b/tests/unit/core/test-arraylist.cpp index 5c018b02b..a0350d611 100644 --- a/tests/unit/core/test-arraylist.cpp +++ b/tests/unit/core/test-arraylist.cpp @@ -489,8 +489,6 @@ TEST(Arraylist, New) arraylist_new (-1, 0, 0, NULL, NULL, NULL, NULL)); POINTERS_EQUAL(NULL, arraylist_new (-1, 0, 0, &test_cmp_cb, NULL, NULL, NULL)); - POINTERS_EQUAL(NULL, - arraylist_new (0, 0, 0, NULL, NULL, NULL, NULL)); /* tests on arraylists */ for (initial_size = 0; initial_size < 2; initial_size++) |