1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Add int64_t support to INI parser (#12374)

This commit is contained in:
Michał Janiszewski
2020-07-25 09:37:35 +02:00
committed by GitHub
parent 6ba6184602
commit 3b60740128
5 changed files with 31 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ TEST_F(IniReaderTest, create_empty)
ASSERT_EQ(ir->GetEnum<int32_t>("spanish", 12345, Enum_Currency), 12345);
ASSERT_EQ(ir->GetFloat("inquisition", 1.234f), 1.234f);
ASSERT_EQ(ir->GetInt32("universal_answer", 42), 42);
ASSERT_EQ(
ir->GetInt64("heat_death_of_the_universe", std::numeric_limits<int64_t>::max()), std::numeric_limits<int64_t>::max());
delete ir;
}