add yaml::stringify

This commit is contained in:
MihailRis
2025-03-24 05:30:56 +03:00
parent 2aea19febd
commit 396fab02b3
4 changed files with 169 additions and 1 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ TEST(YAML, EncodeDecode) {
auto filename = "root:.github/workflows/windows-clang.yml";
try {
auto value = yaml::parse(io::read_string(filename));
std::cout << json::stringify(value, true) << std::endl;
std::cout << yaml::stringify(value) << std::endl;
} catch (const parsing_error& error) {
std::cerr << error.errorLog() << std::endl;
throw error;