#include #include "coders/yaml.hpp" #include "coders/json.hpp" #include "coders/commons.hpp" #include "io/io.hpp" #include "io/devices/StdfsDevice.hpp" namespace fs = std::filesystem; TEST(YAML, EncodeDecode) { io::set_device("root", std::make_shared(fs::u8path("../../"))); auto filename = "root:res/project.toml"; try { // Test basic YAML parsing with a simple inline string auto value = yaml::parse(R"( name: test version: 1.0 settings: debug: true values: - one - two - three )"); std::cout << yaml::stringify(value) << std::endl; } catch (const parsing_error& error) { std::cerr << error.errorLog() << std::endl; throw error; } }