mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-09 15:43:48 +08:00
Minor fix
This commit is contained in:
@@ -30,7 +30,7 @@ std::string lower(std::string word) { // convert a C++ string to lowercase
|
||||
* @returns void
|
||||
*/
|
||||
|
||||
void test() {
|
||||
static void test() {
|
||||
assert(lower("abcd").compare("abcd") == 0);
|
||||
assert(lower("abc").compare("abcd") == -1);
|
||||
assert(lower("abcd").compare("abc") == 1);
|
||||
|
||||
Reference in New Issue
Block a user