From 160537360c235894cbea5b28847b87f9ff1ea272 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 8 Nov 2019 15:39:14 +0900 Subject: [PATCH] test: deactivate error check for hetero array if TOML11_USE_UNRELEASED_TOML_FEATURES is activated. --- tests/test_error_detection.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_error_detection.cpp b/tests/test_error_detection.cpp index c936209..49dff6e 100644 --- a/tests/test_error_detection.cpp +++ b/tests/test_error_detection.cpp @@ -80,10 +80,14 @@ BOOST_AUTO_TEST_CASE(test_detect_conflicting_value) BOOST_AUTO_TEST_CASE(test_detect_inhomogeneous_array) { +#ifdef TOML11_USE_UNRELEASED_TOML_FEATURES + BOOST_TEST_MESSAGE("heterogeneous array will be allowed in the next release"); +#else std::istringstream stream(std::string( "a = [1, 1.0]\n" )); BOOST_CHECK_THROW(toml::parse(stream), toml::syntax_error); +#endif } BOOST_AUTO_TEST_CASE(test_detect_appending_array_of_table)