| 28 | static auto Enum_Currency = ConfigEnum<int32_t>({}); |
| 29 | |
| 30 | TEST_F(IniReaderTest, create_empty) |
| 31 | { |
| 32 | OpenRCT2::MemoryStream ms(0); |
| 33 | ASSERT_EQ(ms.CanRead(), true); |
| 34 | ASSERT_EQ(ms.CanWrite(), true); |
| 35 | auto ir = CreateIniReader(&ms); |
| 36 | ASSERT_NE(ir, nullptr); |
| 37 | ASSERT_EQ(ir->GetBoolean("nobody", true), true); |
| 38 | ASSERT_EQ(ir->GetString("expects", ""), ""); |
| 39 | ASSERT_EQ(ir->GetEnum<int32_t>("spanish", 12345, Enum_Currency), 12345); |
| 40 | ASSERT_EQ(ir->GetFloat("inquisition", 1.234f), 1.234f); |
| 41 | ASSERT_EQ(ir->GetInt32("universal_answer", 42), 42); |
| 42 | ASSERT_EQ( |
| 43 | ir->GetInt64("heat_death_of_the_universe", std::numeric_limits<int64_t>::max()), std::numeric_limits<int64_t>::max()); |
| 44 | } |
| 45 | |
| 46 | TEST_F(IniReaderTest, read_prepared) |
| 47 | { |
nothing calls this directly
no test coverage detected