1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix and format test data

This commit is contained in:
Ted John
2017-02-24 23:00:27 +00:00
parent fe2cb79d18
commit f851198645

View File

@@ -79,7 +79,7 @@ TEST_F(IniReaderTest, read_duplicate)
ASSERT_EQ(ir->GetBoolean("one", false), false);
ASSERT_EQ(ir->GetBoolean("two", false), false);
ASSERT_EQ(ir->GetBoolean("three", false), true);
ASSERT_EQ(ir->GetSint32("fortytwo", 100), 42);
ASSERT_EQ(ir->GetSint32("fortytwo", 100), 41);
ASSERT_EQ(ir->ReadSection("section"), true);
// test 4 times, there are only 3 sections
ASSERT_EQ(ir->ReadSection("section"), true);
@@ -104,10 +104,28 @@ TEST_F(IniReaderTest, read_untrimmed)
delete ir;
}
const std::string IniReaderTest::predefined = "[bool]\nboolval = true\n\n[int]\none = 1\nzero = 0\n\n[string]\npath = "
"\"C:'\\\\some/dir\\\\here/\xE7\xA5\x9E\xE9\xB7\xB9\xE6\x9A\xA2\xE9\x81\x8A\"\n";
const std::string IniReaderTest::predefined =
"[bool]\n"
"boolval = true\n\n"
"[int]\n"
"one = 1\n"
"zero = 0\n\n"
"[string]\n"
"path = "
"\"C:'\\\\some/dir\\\\here/\xE7\xA5\x9E\xE9\xB7\xB9\xE6\x9A\xA2\xE9\x81\x8A\"\n";
const std::string IniReaderTest::duplicate =
"[section]\none = true\nfortytwo = 13\n[section]\ntwo = true\n[section]\nthree = true\nfortytwo = 42\nfortytwo = 41\n";
"[section]\n"
"one = true\n"
"fortytwo = 13\n"
"[section]\n"
"two = true\n"
"[section]\n"
"three = true\n"
"fortytwo = 42\n"
"fortytwo = 41\n";
const std::string IniReaderTest::untrimmed = "[section]\n one = true \n str = \" xxx \"";
const std::string IniReaderTest::untrimmed =
"[section]\n"
"one = true \n"
" str = \" xxx \"";