From 8b5cfb4105bded3c401d2e31858b0ad7f1778a75 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 19 Jul 2020 16:57:20 +0900 Subject: [PATCH] test: add missing `binary` flag to ifstream --- tests/test_parse_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_parse_file.cpp b/tests/test_parse_file.cpp index 7a3dc8f..8fecb9a 100644 --- a/tests/test_parse_file.cpp +++ b/tests/test_parse_file.cpp @@ -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(data, "title") == "TOML Example");