From f4c4fb21c01444dc358fef4c0044d04f6b4331e7 Mon Sep 17 00:00:00 2001 From: ShiftyX1 Date: Tue, 9 Dec 2025 01:10:09 +0300 Subject: [PATCH] fix: update YAML test to use inline string for parsing --- test/coders/yaml.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/coders/yaml.cpp b/test/coders/yaml.cpp index 0401bb19..c169e56b 100644 --- a/test/coders/yaml.cpp +++ b/test/coders/yaml.cpp @@ -11,9 +11,19 @@ namespace fs = std::filesystem; TEST(YAML, EncodeDecode) { io::set_device("root", std::make_shared(fs::u8path("../../"))); - auto filename = "root:.github/workflows/windows-clang.yml"; + auto filename = "root:res/project.toml"; try { - auto value = yaml::parse(io::read_string(filename)); + // 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;