This commit is contained in:
Vaxry 2025-11-09 15:03:51 +00:00
parent 39d598c0a2
commit c38c8a8657
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -87,6 +87,11 @@ int main(int argc, char** argv, char** envp) {
EXPECT(varList2H[1], "\\"); EXPECT(varList2H[1], "\\");
EXPECT(varList2H[2], "ok?"); EXPECT(varList2H[2], "ok?");
CVarList2 varList2I("Hello,\\, ok?", 0, ',', true, false);
EXPECT(varList2I[0], "Hello");
EXPECT(varList2I[1], "\\");
EXPECT(varList2I[2], "ok?");
std::string hello = "hello world!"; std::string hello = "hello world!";
replaceInString(hello, "hello", "hi"); replaceInString(hello, "hello", "hi");
EXPECT(hello, "hi world!"); EXPECT(hello, "hi world!");