fixed GH# 398: PropertyFileConfiguration: input != output

This commit is contained in:
Guenter Obiltschnig
2014-05-19 09:42:15 +02:00
parent 60f6d79469
commit 83b0f47ffb
2 changed files with 29 additions and 2 deletions

View File

@@ -96,12 +96,14 @@ void PropertyFileConfigurationTest::testSave()
pConf->setString("prop1", "value1");
pConf->setInt("prop2", 42);
pConf->setString("prop3", "value\\1\txxx");
std::ostringstream ostr;
pConf->save(ostr);
std::string propFile = ostr.str();
assert (propFile == "prop1: value1\n"
"prop2: 42\n");
"prop2: 42\n"
"prop3: value\\\\1\\txxx\n");
}