Revert "use FetchContent to retrieve TOML test data"

This reverts commit 4c34986db0.
This commit is contained in:
Jordan Williams
2020-02-24 07:31:06 -06:00
parent fe644ea4b7
commit a655a71cef
7 changed files with 26 additions and 74 deletions

View File

@@ -8,12 +8,11 @@
#include <toml.hpp>
#include <iostream>
#include <fstream>
#include <toml11/test/files.hpp>
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
BOOST_AUTO_TEST_CASE(test_hard_example_unicode)
{
const auto data = toml::parse(toml::test::file::hard_example_unicode);
const auto data = toml::parse("toml/tests/hard_example_unicode.toml");
const auto the = toml::find<toml::table>(data, "the");
BOOST_TEST(toml::get<std::string>(the.at("test_string")) ==
@@ -44,7 +43,7 @@ BOOST_AUTO_TEST_CASE(test_hard_example_unicode)
#else
BOOST_AUTO_TEST_CASE(test_hard_example_unicode)
{
const auto data = toml::parse(toml::test::file::hard_example_unicode);
const auto data = toml::parse("toml/tests/hard_example_unicode.toml");
const auto the = toml::find<toml::table>(data, "the");
BOOST_TEST(toml::get<std::string>(the.at("test_string")) ==