TEST(CommonFunctions, ResetUnusedString){
+ // Tests for resetting an unused string.
+
+ wxString ResetUnusedStringData = "Random string with a \\\\\\\\serverpath\\\\location";
+ ResetUnusedString(&ResetUnusedStringData);
+ ASSERT_EQ("Random string with a \\\\serverpath\\location", ResetUnusedStringData.ToStdString());
+
+ ResetUnusedStringData = "Some text \\nwith new \\nlines!";
+ ResetUnusedString(&ResetUnusedStringData);
+ ASSERT_EQ("Some text \nwith new \nlines!", ResetUnusedStringData.ToStdString());
+
+ ResetUnusedStringData = "Some text \\nwith new \\nlines!";
+ ResetUnusedString(&ResetUnusedStringData);
+ ASSERT_EQ("Some text \nwith new \nlines!", ResetUnusedStringData.ToStdString());
+
+ ResetUnusedStringData = "And now the list of characters: \\\\ \\n \\; \\,";
+ ResetUnusedString(&ResetUnusedStringData);
+ ASSERT_EQ("And now the list of characters: \\ \n ; ,", ResetUnusedStringData.ToStdString());
+
}
TEST(CommonFunctions, ConvertToHTML){