test: add missing binary flag to ifstream

This commit is contained in:
ToruNiina 2020-07-19 16:57:20 +09:00
parent 4e0624aa60
commit 8b5cfb4105

View File

@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE(test_example)
BOOST_AUTO_TEST_CASE(test_example_stream)
{
std::ifstream ifs("toml/tests/example.toml");
std::ifstream ifs("toml/tests/example.toml", std::ios::binary);
const auto data = toml::parse(ifs);
BOOST_TEST(toml::find<std::string>(data, "title") == "TOML Example");